fixing database update Typo issue #9