Refactor add_day into the new Database class.