private void write(BufferedWriter out) {
    StringBuffer sb = new StringBuffer();
    
    sb.append("db." + JSONWriter.COLLECTION_NAME + ".insert({");
    sb.append("year: \"" + _year + "\"");
    sb.append(", month: \"" + _month + "\"");
    sb.append(", quarter: \"" + _quarter + "\"");
    sb.append(", NSW: " + _nsw);
    sb.append(", VIC: " + _vic);
    sb.append(", QLD: " + _qld);
    sb.append(", SA: " + _sa);
    sb.append(", WA: " + _wa);
    sb.append(", TAS: " + _tas);
    sb.append(", NT: " + _nt);
    sb.append(", ACT: " + _act);
    sb.append(", AUS: " + _aus);
    sb.append("});");
    
    try { 
      out.write(sb.toString() + "\n");
    } catch (Exception e) {
      System.err.println("Error: " + e.getMessage());
    }
  }