mongodb: phenotype classes and functionality implemented
Some samll fixes