finished couchdb example