Added temp file to reduce window of conflict with refresh service
Fix type on temp file rename
Check if data file already exists before renaming temp file
Save tries every hour