if (that.query.delorterm=='term') {

  that.td = new Date();

  that.td.setMonth(that.td.getMonth()-1);

  that.query.sql = that.query.sql_term;

  if (that.query.hasOwnProperty("bismonat")) {

    that.query.bismonat = that.query.bismonat;

  } else {

    that.query.bismonat = that.td.getMonth()+1;

  }

  if (that.query.hasOwnProperty("bisjahr")) {

    that.query.bisjahr = that.query.bisjahr;

  } else {

    that.query.bisjahr = that.td.getFullYear();

  }

} else if (that.query.delorterm=='del') {

  that.query.sql = that.query.sql_del;

} else {

  throw new Error("query parameter delortterm should be \"del\" or \"term\" but is \""+that.query.delorterm+"\"");

}

logger.debug("delpersongroup.UDBG.sql="+that.query.sql+", query: "+aux.objTxt(that.query));