add safe mode for mongodb