docs: private void writeScript(boolean full) {
  
          deleteNewScript();
  
          //fredt - to do - flag for chache set index
          ScriptWriterBase scw = ScriptWriterBase.newScriptWriter(database,
              scriptFileName + ".new", full, true, scriptFormat);
  
          scw.writeAll();
          scw.close();
      }