OSIS redo base logic classes with mongo as backend