PDB-463 Add back missing query-resources

I had removed limited-query-resources but not replaced it with something
that actually peforms the SQL query. This patch replaces limited-query-resources
with query-resources which really just wraps the limited-* version with
a zero limit.

Signed-off-by: Ken Barber <ken@bob.sh>