Cancel any synchronization on updating or deleting in the main thread.
And start all over again, in order to prevent inter thread concurrency
problems with the database.