finalize couchDB