begin;
alter table "teams" rename to "franchiseseasons";
update franchiseseasons
set teamid = 'WS9'
where teamid = 'WAS' and franchid = 'WAS';
set teamid = 'PHP'
where teamid = 'PH4' and franchid = 'PHQ';
commit;