update couchdb design
refactor add