refactored to use mongodb with 2 collections (classes and sections)