private void write(BufferedWriter out)
  {
    StringBuffer sb = new StringBuffer();
    sb.append("db." + JSONWriter.COLLECTION_NAME + ".insert({");
    sb.append("stationId: \"" + _stationId + "\"");
    sb.append(", stationName: \"" + Stations.getName(_stationId) + "\"");
    sb.append(", latitude: \"" + Stations.getLat(_stationId) + "\"");
    sb.append(", longitude: \"" + Stations.getLon(_stationId) + "\"");
    sb.append(", elevation: \"" + Stations.getElevation(_stationId) + "\"");
    sb.append(", state: \"" + Stations.getState(_stationId) + "\"");
    
    sb.append(", year: \"" + _year + "\"");
    sb.append(", month: \"" + _month + "\"");
    sb.append(", day: \"" + _day + "\"");
    sb.append(", rainfall: \"" + _rainfall + "\"");
    
    sb.append("});\n");
    
    try {
      out.write(sb.toString());
    } catch (IOException e) {
      e.printStackTrace();
    }
    
    //System.out.println(sb.toString());
  }