Changing couchdb to use settings rather than local_settings