Update mongodb configuration