Improved skipping if file has already been processed.
Appears to be working of the database now... Need to check against the previous disk version to confirm.