Fix couchdb design
Fix token use