update couchdb view
fix function add