mongo class update