self implemented NB learner, added mongo dump