fix deprecated mongo client