writing chores to database