put/update document in couchDB