Handle add and update within the SPA DB rather than in the worker.