improve couchDB header
handle conflicts in couchDB