fix(upgrade): use correct table prefixes on river upgrade script

Fixes #7033
Merge pull request #7053 from beck24/7033-dbprefix

fix(upgrade): use correct table prefixes on river upgrade script