Added another bug fix to the database update code.