public static void write(String record, BufferedWriter out)
  {
    try {
      out.write("db." + COLLECTION_NAME + ".insert(" + record + ");\n");
    } catch (IOException e) {
      e.printStackTrace();
    }
  }