db added query-ids, resolve-ids