Edit how to get/save a view on couchdb