adds course_id to db filtering