Update Database.class.php

Corrected bug, no result was returned when invoking query() method