little change for db.c add db_rewind .etc