A wrapper for PDO queries in PHP