Minor code cleanup

File name changed, workers log where file is put. Datetime/time only
queried once.