Fixed small bug - update_submitted_file.
Introduced the logic for attaching an index file to a file, uploading it, and sumchecking it, plus storing its checksum in the DB.