CouchDB wrapper thingy