public static void main(String[] args) {
    String[] govInfoList = CSVStrings.GOV_INFO.split("~");
    
    System.out.println();
    
    try {
      // Output File - clear it down first.
      File outputFile = new File(OUTPUT_FILE);
      outputFile.delete();
      FileWriter fw = new FileWriter(OUTPUT_FILE,true);
      BufferedWriter bw = new BufferedWriter(fw);
      
      bw.write("db." + COLLECTION_NAME + ".remove();");
      
      for (String s : govInfoList) {
        new Government(s, bw);
      }
      
      bw.write("db." + COLLECTION_NAME + ".ensureIndex({\"start.year\": 1, \"start.month\": 2, \"start.day\": 3});");
      bw.write("db." + COLLECTION_NAME + ".ensureIndex({\"end.year\": 1, \"end.month\": 2, \"end.day\": 3});");
      
      bw.close();
      
    } catch (IOException e) {
      e.printStackTrace();
    }
    
    
  }