Database wrapper for PHP using PDO