avoid an exception in the /db test where the ?queries= arg is missing.
generate the right json in both database tests.