Fixed a bug with the DB sync trait where conflicts would not be resolved if the persistent variable would be reseted