Enable safe writes to mongodb