auto populate api from valar_settings.hosts if mongo empty