Add iter_rows to cache_db