Upgrade fix

attempt to fix missing tables on upgrade. not tested. Mainly because I can figure out how to do so. @phaidon please test if you can.

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #1620
| Refs tickets  | -
| License       | MIT
| Doc PR        | -