revised rename using actual tables

now doing real DB upgrades using real tables.