Moving couchdb endpoints to configuration