update sql for course_module