Update Database class to use PDO

Also update DBObject to remove MySQL-specific queries