Mongo class update

Updated deprecated Mongo class.