stuff for couchdb