configure mongo for HA only if the use_mongodb attr is on