Fixed DBQueryTest