runlog is now working assuming there are no missing entries in the database