Added a utility function to calculate the next session for a course
The course update console command now updates the next session for courses