} else {
natSQL = new ImprovedSQLProduction(this.timeFilterFrom, this.timeFilterTo, this.timeGrouping, IDlist).getSQL(stepname);
}
Session session = Helper.getHibernateSession();
SQLQuery query = session.createSQLQuery(natSQL);
// needs to be there otherwise an exception is thrown
query.addScalar("volumes", StandardBasicTypes.INTEGER);
query.addScalar("pages", StandardBasicTypes.INTEGER);
query.addScalar("intervall", StandardBasicTypes.STRING);