implemented persistent naive bayes classifier using mongodb