code: private boolean hasData(CmsSetupDb dbCon) throws SQLException {
  
          System.out.println(new Exception().getStackTrace()[0].toString());
          boolean result = false;
          String query = readQuery(QUERY_SELECT_COUNT_HISTORY_PRINCIPALS);
          CmsSetupDBWrapper db = null;
          try {
              db = dbCon.executeSqlStatement(query, null);
              if (db.getResultSet().next()) {
                  if (db.getResultSet().getInt("COUNT") > 0) {
                      result = true;
                  }
              }
          } finally {
              if (db != null) {
                  db.close();
              }
          }
  
          return result;
      }
docs: Checks if the CMS_HISTORY_PRINCIPALS already has data in it.<p>
  
  @param dbCon the db connection interface
  @return true if there is already data in the table, false if it is empty
  
  @throws SQLException if something goes wrong