Fixed the problem where a put_file call was missing one function argument

Also indented the session.commit() call in process_files() so that the
database would be updated as each file is processed. Doing this was
helpful in determining a scouting data entry anomaly.