update couchdb header