1 delete from accounts where not exists (select 1 from profiles where uuid = profile);
2 delete from account_values where not exists (select 1 from profiles where uuid = profile);
3 delete from transactions where not exists (select 1 from profiles where uuid = profile);
4 delete from transaction_accounts where not exists (select 1 from profiles where uuid = profile);