load config from mongodb