Changing to open stream in CourseDB