Adjusting DaeFormat parameters; correcting Period parsing from database
Loads Period from database when it already exists, instead of always creating a new one
Updates 'period' reference to correct math, uses a Calendar to determine 'enabled' state of Periods