Updated dotgen_hw.php and header.php to use the data structure in datagen_db.php