dbquery: regression tests fix