fixed db:get-changed-run-ids, used it in db:get-changed-record-ids