updated to couchdb