Sync all files from database and save to local file system.