Added storage of start/end date to database.