DB sync and temp files delete