move course->mongo mapping to its own class