added collection update for calculated results in mongodb