fix query-ids
db/resolve-ids 2arg overload