switch activity_by_day to using person_course_day table