Small fix on database table update error