annotated example of how to update a couchdb database using python couchdb module