Minor - reshaping using $course_code instead of $course_id to prepare for queries changes - refs BT#6759
Minor - reshaping using $course_code instead of $course_id to prepare for queries changes (bis) - refs BT#6759
Added function to get course ID from course code - refs BT#6759
Changed course_code for course_id in DB queries for first functions - refs BT#6759