CREATE TABLE IF NOT EXISTS `countrycodes` (
  `code` int(11) NOT NULL DEFAULT '0',
  `name` varchar(50) NOT NULL DEFAULT '',
  `iso_2` varchar(2) NOT NULL DEFAULT '',
  `iso_3` varchar(3) NOT NULL DEFAULT '',
  `postal` varchar(3) NOT NULL DEFAULT '',
  `continent` enum('EU','AF','AS','AU','NA','SA','') NOT NULL DEFAULT '',
  `fee` enum('low','high','unknown') NOT NULL DEFAULT 'unknown',
  PRIMARY KEY (`code`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;

INSERT INTO `countrycodes` (`code`, `name`, `iso_2`, `iso_3`, `postal`, `continent`, `fee`) VALUES
(16, 'AMERICAN SAMOA', 'AS', 'ASM', '', '', 'unknown'),
(20, 'ANDORRA', 'AD', 'AND', 'AND', 'EU', 'unknown'),
(24, 'ANGOLA', 'AO', 'AGO', '', '', 'unknown'),
(660, 'ANGUILLA', 'AI', 'AIA', '', '', 'unknown'),
(10, 'ANTARCTICA', 'AQ', 'ATA', '', '', 'unknown'),
(28, 'ANTIGUA AND BARBUDA', 'AG', 'ATG', '', '', 'unknown'),
(32, 'ARGENTINA', 'AR', 'ARG', 'RA', '', 'unknown'),
(51, 'ARMENIA', 'AM', 'ARM', 'ARM', 'EU', 'low'),
(533, 'ARUBA', 'AW', 'ABW', '', '', 'unknown'),
(36, 'AUSTRALIA', 'AU', 'AUS', 'AUS', '', 'unknown'),
(40, 'AUSTRIA', 'AT', 'AUT', 'A', 'EU', 'high'),
(31, 'AZERBAIJAN', 'AZ', 'AZE', 'AZ', 'EU', 'low'),
(44, 'BAHAMAS', 'BS', 'BHS', 'BS', '', 'unknown'),
(48, 'BAHRAIN', 'BH', 'BHR', 'BRN', '', 'unknown'),
(50, 'BANGLADESH', 'BD', 'BGD', 'BD', '', 'unknown'),
(52, 'BARBADOS', 'BB', 'BRB', 'BDS', '', 'unknown'),
(112, 'BELARUS', 'BY', 'BLR', 'BY', 'EU', 'low'),
(56, 'BELGIUM', 'BE', 'BEL', 'B', 'EU', 'high'),
(84, 'BELIZE', 'BZ', 'BLZ', 'BH', '', 'unknown'),
(204, 'BENIN', 'BJ', 'BEN', 'DY', '', 'unknown'),
(60, 'BERMUDA', 'BM', 'BMU', '', '', 'unknown'),
(64, 'BHUTAN', 'BT', 'BTN', '', '', 'unknown'),
(68, 'BOLIVIA', 'BO', 'BOL', 'BOL', '', 'unknown'),
(70, 'BOSNIA AND HERZEGOWINA', 'BA', 'BIH', 'BIH', 'EU', 'low'),
(72, 'BOTSWANA', 'BW', 'BWA', 'RB', '', 'unknown'),
(74, 'BOUVET ISLAND', 'BV', 'BVT', '', '', 'unknown'),
(76, 'BRAZIL', 'BR', 'BRA', 'BR', '', 'unknown'),
(86, 'BRITISH INDIAN OCEAN TERRITORY', 'IO', 'IOT', '', '', 'unknown'),
(96, 'BRUNEI DARUSSALAM', 'BN', 'BRN', 'BRU', '', 'unknown'),
(100, 'BULGARIA', 'BG', 'BGR', 'BG', 'EU', 'low'),
(854, 'BURKINA FASO', 'BF', 'BFA', '', '', 'unknown'),
(108, 'BURUNDI', 'BI', 'BDI', 'RU', '', 'unknown'),
(116, 'CAMBODIA', 'KH', 'KHM', 'K', '', 'unknown'),
(120, 'CAMEROON', 'CM', 'CMR', 'CAM', '', 'unknown'),
(124, 'CANADA', 'CA', 'CAN', 'CDN', '', 'unknown'),
(132, 'CAPE VERDE', 'CV', 'CPV', '', '', 'unknown'),
(136, 'CAYMAN ISLANDS', 'KY', 'CYM', '', '', 'unknown'),
(140, 'CENTRAL AFRICAN REPUBLIC', 'CF', 'CAF', 'RCA', '', 'unknown'),
(148, 'CHAD', 'TD', 'TCD', 'TD', '', 'unknown'),
(152, 'CHILE', 'CL', 'CHL', 'RCH', '', 'unknown'),
(156, 'CHINA', 'CN', 'CHN', 'RC', '', 'unknown'),
(162, 'CHRISTMAS ISLAND', 'CX', 'CXR', '', '', 'unknown'),
(166, 'COCOS KEELING ISLANDS', 'CC', 'CCK', '', '', 'unknown'),
(170, 'COLOMBIA', 'CO', 'COL', 'CO', '', 'unknown'),
(174, 'COMOROS', 'KM', 'COM', '', '', 'unknown'),
(178, 'CONGO', 'CG', 'COG', '', '', 'unknown'),
(180, 'CONGO, THE DEMOCRATIC REPUBLIC OF THE', 'CD', 'COD', 'RCB', '', 'unknown'),
(184, 'COOK ISLANDS', 'CK', 'COK', '', '', 'unknown'),
(188, 'COSTA RICA', 'CR', 'CRI', 'CR', '', 'unknown'),
(384, 'COTE D''IVOIRE', 'CI', 'CIV', 'CI', '', 'unknown'),
(191, 'CROATIA', 'HR', 'HRV', 'HR', 'EU', 'low'),
(192, 'CUBA', 'CU', 'CUB', 'C', '', 'unknown'),
(196, 'CYPRUS', 'CY', 'CYP', 'CY', 'EU', 'high'),
(203, 'CZECH REPUBLIC', 'CZ', 'CZE', 'CZ', 'EU', 'high'),
(208, 'DENMARK', 'DK', 'DNK', 'DK', 'EU', 'high'),
(262, 'DJIBOUTI', 'DJ', 'DJI', '', '', 'unknown'),
(212, 'DOMINICA', 'DM', 'DMA', 'WD', '', 'unknown'),
(214, 'DOMINICAN REPUBLIC', 'DO', 'DOM', 'DOM', '', 'unknown'),
(626, 'EAST TIMOR', 'TP', 'TMP', '', '', 'unknown'),
(218, 'ECUADOR', 'EC', 'ECU', 'EC', '', 'unknown'),
(818, 'EGYPT', 'EG', 'EGY', 'ET', '', 'unknown'),
(222, 'EL SALVADOR', 'SV', 'SLV', 'ES', '', 'unknown'),
(226, 'EQUATORIAL GUINEA', 'GQ', 'GNQ', '', '', 'unknown'),
(232, 'ERITREA', 'ER', 'ERI', '', '', 'unknown'),
(233, 'ESTONIA', 'EE', 'EST', 'EE', 'EU', 'high'),
(231, 'ETHIOPIA', 'ET', 'ETH', 'ETH', '', 'unknown'),
(238, 'FALKLAND ISLANDS', 'FK', 'FLK', '', '', 'unknown'),
(234, 'FAROE ISLANDS', 'FO', 'FRO', 'FR', '', 'unknown'),
(242, 'FIJI', 'FJ', 'FJI', 'FJI', '', 'unknown'),
(246, 'FINLAND', 'FI', 'FIN', 'FIN', 'EU', 'high'),
(250, 'FRANCE', 'FR', 'FRA', 'F', 'EU', 'high'),
(249, 'FRANCE METROPOLITAN', 'FX', 'FXX', '', '', 'unknown'),
(254, 'FRENCH GUIANA', 'GF', 'GUF', '', '', 'unknown'),
(258, 'FRENCH POLYNESIA', 'PF', 'PYF', '', '', 'unknown'),
(260, 'FRENCH SOUTHERN TERRITORIES', 'TF', 'ATF', '', '', 'unknown'),
(266, 'GABON', 'GA', 'GAB', 'GAB', '', 'unknown'),
(270, 'GAMBIA', 'GM', 'GMB', 'WAG', '', 'unknown'),
(268, 'GEORGIA', 'GE', 'GEO', 'GEO', 'EU', 'low'),
(276, 'GERMANY', 'DE', 'DEU', 'D', 'EU', 'high'),
(288, 'GHANA', 'GH', 'GHA', 'GH', '', 'unknown'),
(292, 'GIBRALTAR', 'GI', 'GIB', 'GBZ', '', 'unknown'),
(300, 'GREECE', 'GR', 'GRC', 'GR', 'EU', 'high'),
(304, 'GREENLAND', 'GL', 'GRL', '', '', 'unknown'),
(308, 'GRENADA', 'GD', 'GRD', 'WG', '', 'unknown'),
(312, 'GUADELOUPE', 'GP', 'GLP', '', '', 'unknown'),
(316, 'GUAM', 'GU', 'GUM', '', '', 'unknown'),
(320, 'GUATEMALA', 'GT', 'GTM', 'GCA', '', 'unknown'),
(324, 'GUINEA', 'GN', 'GIN', 'RG', '', 'unknown'),
(624, 'GUINEA-BISSAU', 'GW', 'GNB', '', '', 'unknown'),
(328, 'GUYANA', 'GY', 'GUY', 'GUY', '', 'unknown'),
(332, 'HAITI', 'HT', 'HTI', 'RH', '', 'unknown'),
(334, 'HEARD AND MC DONALD ISLANDS', 'HM', 'HMD', '', '', 'unknown'),
(336, 'HOLY SEE VATICAN CITY STATE', 'VA', 'VAT', 'V', '', 'unknown'),
(340, 'HONDURAS', 'HN', 'HND', '', '', 'unknown'),
(344, 'HONG KONG', 'HK', 'HKG', 'HK', '', 'unknown'),
(348, 'HUNGARY', 'HU', 'HUN', 'H', 'EU', 'high'),
(352, 'ICELAND', 'IS', 'ISL', 'IS', 'EU', 'high'),
(356, 'INDIA', 'IN', 'IND', 'IND', '', 'unknown'),
(360, 'INDONESIA', 'ID', 'IDN', 'RI', '', 'unknown'),
(364, 'IRAN ISLAMIC REPUBLIC OF', 'IR', 'IRN', 'IR', '', 'unknown'),
(368, 'IRAQ', 'IQ', 'IRQ', 'IRQ', '', 'unknown'),
(372, 'IRELAND', 'IE', 'IRL', 'IRL', 'EU', 'high'),
(376, 'ISRAEL', 'IL', 'ISR', 'IL', '', 'unknown'),
(380, 'ITALY', 'IT', 'ITA', 'I', 'EU', 'high'),
(388, 'JAMAICA', 'JM', 'JAM', 'JA', '', 'unknown'),
(392, 'JAPAN', 'JP', 'JPN', 'J', '', 'unknown'),
(400, 'JORDAN', 'JO', 'JOR', 'HKJ', '', 'unknown'),
(398, 'KAZAKHSTAN', 'KZ', 'KAZ', 'KZ', 'EU', 'low'),
(404, 'KENYA', 'KE', 'KEN', 'EAK', '', 'unknown'),
(296, 'KIRIBATI', 'KI', 'KIR', '', '', 'unknown'),
(408, 'KOREA, DEMOCRATIC PEOPLE''S REPUBLIC OF', 'KP', 'PRK', '', '', 'unknown'),
(410, 'KOREA, REPUBLIC OF', 'KR', 'KOR', 'ROK', '', 'unknown'),
(414, 'KUWAIT', 'KW', 'KWT', 'KWT', '', 'unknown'),
(417, 'KYRGYZSTAN', 'KG', 'KGZ', 'KS', '', 'unknown'),
(418, 'LAO PEOPLE''S DEMOCRATIC REPUBLIC', 'LA', 'LAO', 'LAO', '', 'unknown'),
(428, 'LATVIA', 'LV', 'LVA', 'LV', 'EU', 'high'),
(422, 'LEBANON', 'LB', 'LBN', 'RL', '', 'unknown'),
(426, 'LESOTHO', 'LS', 'LSO', 'LS', '', 'unknown'),
(430, 'LIBERIA', 'LR', 'LBR', 'LB', '', 'unknown'),
(434, 'LIBYAN ARAB JAMAHIRIYA', 'LY', 'LBY', 'LAR', '', 'unknown'),
(438, 'LIECHTENSTEIN', 'LI', 'LIE', 'FL', 'EU', 'high'),
(440, 'LITHUANIA', 'LT', 'LTU', 'LTU', 'EU', 'high'),
(442, 'LUXEMBOURG', 'LU', 'LUX', 'L', 'EU', 'high'),
(446, 'MACAU', 'MO', 'MAC', '', '', 'unknown'),
(807, 'MACEDONIA, THE FORMER YUGOSLAV REPUBLIC OF', 'MK', 'MKD', 'MK', 'EU', 'low'),
(450, 'MADAGASCAR', 'MG', 'MDG', 'RM', '', 'unknown'),
(454, 'MALAWI', 'MW', 'MWI', 'MW', '', 'unknown'),
(458, 'MALAYSIA', 'MY', 'MYS', 'MAL', '', 'unknown'),
(462, 'MALDIVES', 'MV', 'MDV', '', '', 'unknown'),
(466, 'MALI', 'ML', 'MLI', 'RMM', '', 'unknown'),
(470, 'MALTA', 'MT', 'MLT', 'M', 'EU', 'high'),
(584, 'MARSHALL ISLANDS', 'MH', 'MHL', '', '', 'unknown'),
(474, 'MARTINIQUE', 'MQ', 'MTQ', '', '', 'unknown'),
(478, 'MAURITANIA', 'MR', 'MRT', 'RIM', '', 'unknown'),
(480, 'MAURITIUS', 'MU', 'MUS', 'MS', '', 'unknown'),
(175, 'MAYOTTE', 'YT', 'MYT', '', '', 'unknown'),
(484, 'MEXICO', 'MX', 'MEX', 'MEX', '', 'unknown'),
(583, 'MICRONESIA, FEDERATED STATES OF', 'FM', 'FSM', '', '', 'unknown'),
(498, 'MOLDOVA, REPUBLIC OF', 'MD', 'MDA', 'MD', 'EU', 'low'),
(492, 'MONACO', 'MC', 'MCO', 'MC', 'EU', 'unknown'),
(496, 'MONGOLIA', 'MN', 'MNG', '', '', 'unknown'),
(500, 'MONTSERRAT', 'MS', 'MSR', '', '', 'unknown'),
(504, 'MOROCCO', 'MA', 'MAR', 'MA', '', 'unknown'),
(508, 'MOZAMBIQUE', 'MZ', 'MOZ', 'MOC', '', 'unknown'),
(104, 'MYANMAR', 'MM', 'MMR', 'BUR', '', 'unknown'),
(516, 'NAMIBIA', 'NA', 'NAM', 'NAM', '', 'unknown'),
(520, 'NAURU', 'NR', 'NRU', '', '', 'unknown'),
(524, 'NEPAL', 'NP', 'NPL', 'NEP', '', 'unknown'),
(528, 'NETHERLANDS', 'NL', 'NLD', 'NL', 'EU', 'high'),
(530, 'NETHERLANDS ANTILLES', 'AN', 'ANT', 'NA', '', 'unknown'),
(540, 'NEW CALEDONIA', 'NC', 'NCL', '', '', 'unknown'),
(554, 'NEW ZEALAND', 'NZ', 'NZL', 'NZ', '', 'unknown'),
(558, 'NICARAGUA', 'NI', 'NIC', 'NIC', '', 'unknown'),
(562, 'NIGER', 'NE', 'NER', 'RN', '', 'unknown'),
(566, 'NIGERIA', 'NG', 'NGA', 'WAN', '', 'unknown'),
(570, 'NIUE', 'NU', 'NIU', '', '', 'unknown'),
(574, 'NORFOLK ISLAND', 'NF', 'NFK', '', '', 'unknown'),
(580, 'NORTHERN MARIANA ISLANDS', 'MP', 'MNP', '', '', 'unknown'),
(578, 'NORWAY', 'NO', 'NOR', 'N', 'EU', 'high'),
(512, 'OMAN', 'OM', 'OMN', '', '', 'unknown'),
(586, 'PAKISTAN', 'PK', 'PAK', 'PK', '', 'unknown'),
(585, 'PALAU', 'PW', 'PLW', '', '', 'unknown'),
(591, 'PANAMA', 'PA', 'PAN', 'PA', '', 'unknown'),
(598, 'PAPUA NEW GUINEA', 'PG', 'PNG', 'PNG', '', 'unknown'),
(600, 'PARAGUAY', 'PY', 'PRY', 'PY', '', 'unknown'),
(604, 'PERU', 'PE', 'PER', 'PE', '', 'unknown'),
(608, 'PHILIPPINES', 'PH', 'PHL', 'RP', '', 'unknown'),
(612, 'PITCAIRN', 'PN', 'PCN', '', '', 'unknown'),
(616, 'POLAND', 'PL', 'POL', 'PL', 'EU', 'high'),
(620, 'PORTUGAL', 'PT', 'PRT', 'P', 'EU', 'high'),
(630, 'PUERTO RICO', 'PR', 'PRI', '', '', 'unknown'),
(634, 'QATAR', 'QA', 'QAT', 'QA', '', 'unknown'),
(638, 'REUNION', 'RE', 'REU', '', '', 'unknown'),
(642, 'ROMANIA', 'RO', 'ROM', 'RO', 'EU', 'high'),
(643, 'RUSSIAN FEDERATION', 'RU', 'RUS', 'RUS', 'EU', 'low'),
(646, 'RWANDA', 'RW', 'RWA', 'RWA', '', 'unknown'),
(659, 'SAINT KITTS AND NEVIS', 'KN', 'KNA', '', '', 'unknown'),
(662, 'SAINT LUCIA', 'LC', 'LCA', '', '', 'unknown'),
(670, 'SAINT VINCENT AND THE GRENADINES', 'VC', 'VCT', '', '', 'unknown'),
(882, 'SAMOA', 'WS', 'WSM', 'WS', '', 'unknown'),
(674, 'SAN MARINO', 'SM', 'SMR', 'RSM', '', 'unknown'),
(678, 'SAO TOME AND PRINCIPE', 'ST', 'STP', '', '', 'unknown'),
(682, 'SAUDI ARABIA', 'SA', 'SAU', 'SA', '', 'unknown'),
(686, 'SENEGAL', 'SN', 'SEN', 'SN', '', 'unknown'),
(690, 'SEYCHELLES', 'SC', 'SYC', 'SY', '', 'unknown'),
(694, 'SIERRA LEONE', 'SL', 'SLE', 'WAL', '', 'unknown'),
(702, 'SINGAPORE', 'SG', 'SGP', 'SGP', '', 'unknown'),
(703, 'SLOVAKIA Slovak Republic', 'SK', 'SVK', 'SK', 'EU', 'low'),
(705, 'SLOVENIA', 'SI', 'SVN', 'SI', 'EU', 'high'),
(90, 'SOLOMON ISLANDS', 'SB', 'SLB', '', '', 'unknown'),
(706, 'SOMALIA', 'SO', 'SOM', 'SO', '', 'unknown'),
(710, 'SOUTH AFRICA', 'ZA', 'ZAF', 'ZA', '', 'unknown'),
(239, 'SOUTH GEORGIA AND THE SOUTH SANDWICH ISLANDS', 'GS', 'SGS', '', '', 'unknown'),
(724, 'SPAIN', 'ES', 'ESP', 'E', 'EU', 'high'),
(144, 'SRI LANKA', 'LK', 'LKA', 'CL', '', 'unknown'),
(654, 'ST. HELENA', 'SH', 'SHN', '', '', 'unknown'),
(666, 'ST. PIERRE AND MIQUELON', 'PM', 'SPM', '', '', 'unknown'),
(736, 'SUDAN', 'SD', 'SDN', 'SUD', '', 'unknown'),
(740, 'SURINAME', 'SR', 'SUR', 'SME', '', 'unknown'),
(744, 'SVALBARD AND JAN MAYEN ISLANDS', 'SJ', 'SJM', 'SD', '', 'unknown'),
(748, 'SWAZILAND', 'SZ', 'SWZ', '', '', 'unknown'),
(752, 'SWEDEN', 'SE', 'SWE', 'S', 'EU', 'high'),
(756, 'SWITZERLAND', 'CH', 'CHE', 'CH', 'EU', 'high'),
(760, 'SYRIAN ARAB REPUBLIC', 'SY', 'SYR', 'SYR', '', 'unknown'),
(158, 'TAIWAN PROVINCE OF CHINA', 'TW', 'TWN', 'RC', '', 'unknown'),
(762, 'TAJIKISTAN', 'TJ', 'TJK', 'TJ', '', 'unknown'),
(834, 'TANZANIA UNITED REPUBLIC OF', 'TZ', 'TZA', 'EAT', '', 'unknown'),
(764, 'THAILAND', 'TH', 'THA', 'T', '', 'unknown'),
(768, 'TOGO', 'TG', 'TGO', 'TG', '', 'unknown'),
(772, 'TOKELAU', 'TK', 'TKL', '', '', 'unknown'),
(776, 'TONGA', 'TO', 'TON', '', '', 'unknown'),
(780, 'TRINIDAD AND TOBAGO', 'TT', 'TTO', 'TT', '', 'unknown'),
(788, 'TUNISIA', 'TN', 'TUN', 'TN', '', 'unknown'),
(792, 'TURKEY', 'TR', 'TUR', 'TR', 'EU', 'low'),
(795, 'TURKMENISTAN', 'TM', 'TKM', 'TM', '', 'unknown'),
(796, 'TURKS AND CAICOS ISLANDS', 'TC', 'TCA', '', '', 'unknown'),
(798, 'TUVALU', 'TV', 'TUV', '', '', 'unknown'),
(800, 'UGANDA', 'UG', 'UGA', 'EAU', '', 'unknown'),
(804, 'UKRAINE', 'UA', 'UKR', 'UA', 'EU', 'low'),
(784, 'UNITED ARAB EMIRATES', 'AE', 'ARE', 'UAE', '', 'unknown'),
(826, 'UNITED KINGDOM', 'GB', 'GBR', 'GB', 'EU', 'high'),
(840, 'UNITED STATES', 'US', 'USA', 'USA', '', 'unknown'),
(581, 'UNITED STATES MINOR OUTLYING ISLANDS', 'UM', 'UMI', '', '', 'unknown'),
(858, 'URUGUAY', 'UY', 'URY', 'ROU', '', 'unknown'),
(860, 'UZBEKISTAN', 'UZ', 'UZB', 'UZ', 'EU', 'low'),
(548, 'VANUATU', 'VU', 'VUT', '', '', 'unknown'),
(862, 'VENEZUELA', 'VE', 'VEN', 'YV', '', 'unknown'),
(704, 'VIETNAM', 'VN', 'VNM', 'VN', '', 'unknown'),
(92, 'VIRGIN ISLANDS BRITISH', 'VG', 'VGB', '', '', 'unknown'),
(850, 'VIRGIN ISLANDS U.S.', 'VI', 'VIR', 'BUI', '', 'unknown'),
(876, 'WALLIS AND FUTUNA ISLANDS', 'WF', 'WLF', '', '', 'unknown'),
(732, 'WESTERN SAHARA', 'EH', 'ESH', '', '', 'unknown'),
(887, 'YEMEN', 'YE', 'YEM', 'YEM', '', 'unknown'),
(688, 'SERBIA', 'RS', 'SRB', 'SRB', 'EU', 'low'),
(894, 'ZAMBIA', 'ZM', 'ZMB', 'RNR', '', 'unknown'),
(716, 'ZIMBABWE', 'ZW', 'ZWE', 'ZW', '', 'unknown'),
(4, 'AFGHANISTAN', 'AF', 'AFG', 'AFG', '', 'unknown'),
(8, 'ALBANIA', 'AL', 'ALB', 'AL', 'EU', 'low'),
(12, 'ALGERIA', 'DZ', 'DZA', 'DZ', '', 'unknown'),
(0, '--- unknown ---', 'XX', 'XXX', 'XXX', '', 'unknown'),
(499, 'MONTENEGRO', 'ME', 'MNE', 'MNE', 'EU', 'low');
