Fix so that we use the correct transaction manager.
CourseId should be unique I think.
Check that the unique course ID is working on insert.