Tidy obsolete variables in couchdb module.