Update mongo handler for the new version of mongo.
Merge pull request #1646 from edx/feanil/update_mongo_handler

Update mongo handler for the new version of mongo.