Log work begun correctly
Remove tmp files if they exist before linking
Avoid queuing files multiple times
Avoid INSERT IGNORE