Database update sporadically fails

Thanks for your reply. I tried the more standard .then approach originally, but ran into problems for other reasons.