CouchDB database iterator tool