Fixing revision identification in couchDB