Fixed overlapping calls to sync to on disk db