private void ParsePHPFileButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_ParsePHPFileButtonActionPerformed
    PreparedStatement ps = null;
    ResultSet rs = null;
    Connection conn = null;
    int TARGET_PHP_FILES_ID = 0;

    try {
        if ((conn = 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("SELECT ID,TEXT FROM TARGET_PHP_FILES");
        rs = ps.executeQuery();

        while (rs.next()) {
            TARGET_PHP_FILES_ID = rs.getInt(1);
            JavaDBAccess.CleanPHPFile(TARGET_PHP_FILES_ID, JavaDBAccess);
        }
        rs.close();
        ps.close();
        conn.commit();
        conn.close();

    } catch (Throwable e) {
        System.out.println("Errors in ParsePHPFile!");
        System.out.println("exception thrown:");

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