logs the each days work in the db