added user_id and course_id fields