test refactoring only
fixed bug with valid queries that returned no rows.