a PDO wrapper for making common database operations slightly easier