Sync the folder between source folder and destination folder, and write the sync records into the database