finish the round db function