CLSQL is a really nice library to access SQL databases. I'm evaluating it for a project of mine and it's fun to work with. Instead of fumbling around with SQL commands you create classes which get mapped into the database.