'Writes the average reading to the database for that place and month'

def done(self):

    for (day_number, values) in self.aggregated_values.iteritems():
        self.sample_table.insert(time_period=month_number, place_id=self.place_id, value=(sum(values) / len(values)))
