Removed safe parameter due to PyMongo deprecation warning