syncing events and resetting db