After this:
echo PilotData::GetFieldValue($pilot->pilotid, 'VATSIM ID');
Can you put (just right after it, before the ?>:
DB::debug();
And refresh the page with the output
You have to replace [Registration] with the variable with the registration:
<?php
$params = (array('a.registration'=>$aircraft->registration, 'p.accepted'=>PIREP_ACCEPTED));
$pirep = PIREPData::findPIREPS($params);
$current_location = $pirep[0]->arricao;
?>
For #2 - export all your schedules. Then in phpMyAdmin, empty your airports table. Then re-import all your schedules.
#1 - nope. I don't support within iframes