updated Mongo class