Added a relation in the DB to allow multiple periods for data collection and aggregation.