Added code to update the databases/information when restoring soft-deleted file or copying locally from an existing file
Added code for soft deleting a file
Moved code to restore local files in child process