No more trailing commas in log file.
file column of database is now updated properly