Puts beginning and end of each cycle into db for all cycle data