fix db update issue