update couchdb view