recover couchdb login and use basic authentication