             
               sql_string = sql_pieces.join " AND "
             
-              path_pieces = [major_name, major_value, minor_name, minor_value, script, game_type+"p"]
+              path_pieces = [major.name, major_value, minor.name, minor_value, script, game_type+"p"]
               path = outfile_path_root + path_pieces.join "/"
+              
+              opts = 
+                caption: caption
+                where_sql_snippet: sql_string
+                outfile_path: path
+                limit: list_item_limit
+              
+              exists = fs.existsSync path
+              
+              if exists
+                require(script_filename)(opts)
+              else
+                mkdirp path, (err) -> require(script_filename)(opts)
             
-              mkdirp path, (err) ->
+                  
             
-                opts = 
-                  caption: caption
-                  where_sql_snippet: sql_string
-                  outfile_path: path
-                  limit: list_item_limit
-            
-                require(script_filename)(opts)+                  
      "207E (Encino, CA)"
      "14211 (Sherman Oaks, CA)"
    ]

minors = 
  all: 
    values: ["all"]
  # month: ["January", "February", "March", "April", "May", "June"]
  # dom: []
  # dow: 
  #   sql: "DAYNAME(t.matchdate) = '?'"
  #   values: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"]

# dom = 1
# while dom <= 31

outfile_path_root = "#{__dirname}/../parts/tables/"
list_item_limit = 10

for major in majors
  sql = {}
  for major_value in major.values
    if major.sql
