fix db while loop error - hyewon.eum