Working with couchdb