Mongodb security provider fixes