submits to couchdb