Fix wrong table prefix (thanks Krisztián)

Also improve upgrade process so that, in the (hopefully now unlikely)
event the table exists when the shop is installed, there aren't 50
errors thrown.