finally solve the db lazy io problem