some helpers for queries with lots of terms; Q bugfixes
some helpers for queries with lots of terms; Q bugfixes

tuulos/traildb,traildb/traildb,traildb/traildb,tuulos/traildb,tuulos/traildb,traildb/traildb,tuulos/traildb