Modifying add_entry to wait for files to finish moving before
starting pdbase

There was a race condition whereby pdbase would attempt to run
before the files were moved. It might make more sense to move the
file operations into the second step, after the ajax call and before
pdbase starts running, so we don't have a ton of lag between these two
steps