Freetuts.org DB class is a MySQL-PDO class with SQL abstraction methods that will help you reduce the amount of SQL code you need to write to minimum.