working on CouchDB app