Added a safe-do to mongo ext