hotfix: merge is necessary after all

This...

* reintroduces the `merge()` calls to properly negotiate the dirty tasks in the session with the tasks in the database.