code: protected void transferDataToHistoryTable(CmsSetupDb dbCon) throws SQLException {
  
          if (!isKeepHistory()) {
              return;
          }
          System.out.println(new Exception().getStackTrace()[0].toString());
          // Get the data from the CMS_BACKUP table
          String query = readQuery(QUERY_SELECT_DATA_FROM_BACKUP_PROJECTS);
          CmsSetupDBWrapper db = null;
          try {
              db = dbCon.executeSqlStatement(query, null);
  
              String insertQuery = readQuery(QUERY_INSERT_CMS_HISTORY_TABLE);
              while (db.getResultSet().next()) {
                  // Add the values to be inserted into the CMS_HISTORY_PROJECTS table
                  List<Object> params = new ArrayList<Object>();
                  params.add(db.getResultSet().getString("PROJECT_UUID"));
                  params.add(db.getResultSet().getString("PROJECT_NAME"));
                  params.add(db.getResultSet().getString("PROJECT_DESCRIPTION"));
                  params.add(new Integer(db.getResultSet().getInt("PROJECT_TYPE")));
                  params.add(db.getResultSet().getString("USER_ID"));
                  params.add(db.getResultSet().getString("GROUP_ID"));
                  params.add(db.getResultSet().getString("MANAGERGROUP_ID"));
                  params.add(new Long(db.getResultSet().getLong("DATE_CREATED")));
                  params.add(new Integer(db.getResultSet().getInt("PUBLISH_TAG")));
                  Date date = db.getResultSet().getDate("PROJECT_PUBLISHDATE");
                  params.add(new Long(date.getTime()));
                  params.add(db.getResultSet().getString("PROJECT_PUBLISHED_BY"));
                  params.add(db.getResultSet().getString("PROJECT_OU"));
  
                  dbCon.updateSqlStatement(insertQuery, null, params);
              }
          } finally {
              if (db != null) {
                  db.close();
              }
          }
  
      }
docs: Transfers the data from the CMS_BACKUP_PROJECTS to the CMS_HISTORY_PROJECTS table.<p>
  
  The datetime type for the column PROJECT_PUBLISHDATE is converted to the new long value.<p>
  
  @param dbCon the db connection interface
  
  @throws SQLException if something goes wrong