To hold you over until next week here is the map drawing interface. As long as your class implements this interface it won't need to deal with retrieving data from the database etc.
interface iDrawMap
{
// $smallmap is true if drawing the smaller map, false otherwise
public function __construct($smallmap);
// Draw territory names onto the map
public function addTerritoryNames();
// Draw a caption in the center, like "Game over: foobar won"
public function caption($text);
// Color a territory as belonging to a country
public function colorTerritory($terrName, $country);
// Add a unit at the given spot
public function addUnit($terrName, $unitType);
// Draw a marker on a unit indicating which country it belongs to
public function countryFlag($terrName, $country);
// Draw a move arrow
public function drawMove($fromTerr, $toTerr, $success);
// Draw a support hold arrow
public function drawSupportHold($fromTerr, $toTerr, $success);
// Draw a support move arrow
public function drawSupportMove($terr, $fromTerr, $toTerr, $success);
// Draw a convoy arrow
public function drawConvoy($terr, $fromTerr, $toTerr, $success);
// Draw a retreat arrow
public function drawRetreat($fromTerr, $toTerr, $success);
// Draw a unit, plus a marker showing that it's new
public function drawCreatedUnit($terr, $unitType);
// Draw a marker showing that a unit was destroyed here
public function drawDestroyedUnit($terr);
// Draw a marker showing a unit was dislodged here
public function drawDislodgedUnit($terr);
// Draw a marker showing that a standoff occurred
public function drawStandoff($terr);
// Write the map to the given location
public function write($filename);
}