Fix db on update error