Refactor to use orm and the worker.newChangeset chain