modify db_iter.cpp