fix incorrect table names in upgrade.php