Update mongo handler for the new version of mongo.

@fredsmith