Fixed typo in db update code.