private void DeleteAttackData() {
        Connection conn = null;


        PreparedStatement ps = null;
        try {
            if ((conn = this.JavaDBAccess.setConn()) != null) {
                System.out.println("Connected to database " + JavaDBAccess.getDatabaseName());
            } else {
                throw new Exception("Not connected to database " + JavaDBAccess.getDatabaseName());
            }


            conn.setAutoCommit(false);

            ps = conn.prepareStatement("DELETE FROM ATTACK_PAYLOADS");
            ps.executeUpdate();
            ps = conn.prepareStatement("DELETE FROM HTTP_VARIABLES_SQL_QUERIES WHERE TARGET_PHP_FILES_RUNS_FUNCTIONS_VARIABLE IN (SELECT ID FROM TARGET_PHP_FILES_RUNS_FUNCTIONS_VARIABLES WHERE MODE='ATTACK')");
            ps.executeUpdate();
            ps = conn.prepareStatement("DELETE FROM HTTP_VARIABLES_SQL_VARIABLES WHERE TARGET_PHP_FILES_RUNS_FUNCTIONS_VARIABLE IN (SELECT ID FROM TARGET_PHP_FILES_RUNS_FUNCTIONS_VARIABLES WHERE MODE='ATTACK')");
            ps.executeUpdate();
            ps = conn.prepareStatement("DELETE FROM TARGET_PHP_FILES_RUNS_FUNCTIONS_VARIABLES WHERE MODE='ATTACK'");
            ps.executeUpdate();
            ps = conn.prepareStatement("DELETE FROM MYSQL_QUERIES_VARIABLES WHERE MYSQL_QUERY IN(SELECT MYSQL_QUERIES.ID FROM MYSQL_QUERIES,MYSQL_PROXY_PACKETS WHERE MYSQL_QUERIES.MYSQL_PROXY_PACKET_CLIENT=MYSQL_PROXY_PACKETS.ID AND MYSQL_PROXY_PACKETS.MODE='ATTACK')");
            ps.executeUpdate();
            ps = conn.prepareStatement("DELETE FROM MYSQL_QUERIES WHERE MYSQL_PROXY_PACKET_CLIENT IN (SELECT ID FROM MYSQL_PROXY_PACKETS WHERE MODE='ATTACK')");
            ps.executeUpdate();
            ps = conn.prepareStatement("DELETE FROM MYSQL_PACKETS WHERE MYSQL_PROXY_PACKET IN (SELECT ID FROM MYSQL_PROXY_PACKETS WHERE MODE='ATTACK')");
            ps.executeUpdate();
            ps = conn.prepareStatement("DELETE FROM MYSQL_PROXY_PACKETS WHERE MODE='ATTACK'");
            ps.executeUpdate();
            ps = conn.prepareStatement("DELETE FROM TARGET_PHP_FILES_RUNS_FUNCTIONS WHERE MODE='ATTACK'");
            ps.executeUpdate();
            ps.close();
            conn.commit();
            conn.close();
            InspectionTextArea.setText("Attack data deleted!");
        } catch (Throwable e) {
            InspectionTextArea.setText("Errors deleting Attack data!");
            System.out.println("exception thrown:");

            if (e instanceof SQLException) {
                JavaDBAccess.printSQLError((SQLException) e);
            } else {
                e.printStackTrace();
            }

        }
    }