rearrange schema reload for happy foreign keys