private void VulnerabilityInjectionAll(Boolean AffectSQLStatic, Boolean AffectSQLDynamic) {
        Connection conn = null;
        PreparedStatement ps = null;
        ResultSet rs = null;
        DatabaseAccess JavaDBAccess2 = 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);

            // Start a transaction by inserting a record in the TARGET_PHP_FILES_FUNCTIONS table
            ps = conn.prepareStatement("SELECT PATH FROM TARGET_PHP_FILES");
            rs = ps.executeQuery();
            while (rs.next()) {
                JavaDBAccess2 = new DatabaseAccess(DBprops);
                VulnInject.VulnerabilityInjection(JavaDBAccess2, PHPFile, rs.getString("PATH"), AffectSQLStatic, AffectSQLDynamic);
                JavaDBAccess2 = null;
            }
            ps.close();
            conn.commit();
            conn.close();
        } catch (Throwable e) {
            InspectionTextArea.setText("Errors deleting DB data!");
            System.out.println("exception thrown:");

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

    }