You don't need to do all this. In the admin panel, under settings, there's "Custom Fields", you can add it there.http://www.phpvms.net/docs/managing_you ... ile_fieldsAfter adding it, to show it in the profile, you have to call it (assuming you named it "Country"):
echo PilotData::GetFieldValue($pilot->pilotid, 'Country');
As for showing icons, that'd be a bit trickier. But if this seems like something everyone wants, I can add it in, that way there's no hassle during updates. I'm not quite sure where to get the icons as well.