Index: trunk/ippTools/src/addtool.c
===================================================================
--- trunk/ippTools/src/addtool.c	(revision 28265)
+++ trunk/ippTools/src/addtool.c	(revision 28266)
@@ -431,5 +431,5 @@
         return false;
     }
-    
+
     psFree(query);
 
@@ -475,12 +475,12 @@
     if (minidvodb_name) {
       psString setName = NULL;
-      psStringAppend (&setName, "UPDATE addRun set minidvodb_name = '%s' where add_id = %" PRId64, minidvodb_name, row->add_id); 
+      psStringAppend (&setName, "UPDATE addRun set minidvodb_name = '%s' where add_id = %" PRId64, minidvodb_name, row->add_id);
       if (!p_psDBRunQuery(config->dbh, setName)) {
-	if (!psDBRollback(config->dbh)) {
-	  psError(PS_ERR_UNKNOWN, false, "database error");
+        if (!psDBRollback(config->dbh)) {
+          psError(PS_ERR_UNKNOWN, false, "database error");
         }
         psError(PS_ERR_UNKNOWN, false, "database error");
-	
-	return false;
+
+        return false;
       }
     }
@@ -625,32 +625,4 @@
         psFree(where);
         return false;
-    }
-
-    {
-        psString query = pxDataGet("addtool_reset_faulted_runs.sql");
-        if (!query) {
-            psError(PXTOOLS_ERR_SYS, false, "failed to retreive SQL statement");
-            psFree(where);
-            return false;
-        }
-
-        // use psDBGenerateWhereConditionalSQL with AND ... because the SQL ends in a WHERE
-        if (where && psListLength(where->list)) {
-            psString whereClause = psDBGenerateWhereConditionSQL(where, NULL);
-            psStringAppend(&query, " AND %s", whereClause);
-            psFree(whereClause);
-        }
-
-        if (!p_psDBRunQuery(config->dbh, query)) {
-            // rollback
-            if (!psDBRollback(config->dbh)) {
-                psError(PS_ERR_UNKNOWN, false, "database error");
-            }
-            psError(PS_ERR_UNKNOWN, false, "database error");
-            psFree(query);
-            psFree(where);
-            return false;
-        }
-        psFree(query);
     }
 
@@ -1476,32 +1448,4 @@
 
   {
-        psString query = pxDataGet("addtool_reset_faulted_minidvodbruns.sql");
-        if (!query) {
-            psError(PXTOOLS_ERR_SYS, false, "failed to retreive SQL statement");
-            psFree(where);
-            return false;
-        }
-
-        // use psDBGenerateWhereConditionalSQL with AND ... because the SQL ends in a WHERE
-
-        if (where && psListLength(where->list)) {
-          psString whereClause = psDBGenerateWhereConditionSQL(where, NULL);
-          psStringAppend(&query, " AND %s", whereClause);
-          psFree(whereClause);
-        }
-
-        if (!p_psDBRunQuery(config->dbh, query)) {
-          // rollback
-          if (!psDBRollback(config->dbh)) {
-            psError(PS_ERR_UNKNOWN, false, "database error");
-          }
-          psError(PS_ERR_UNKNOWN, false, "database error");
-          psFree(query);
-          psFree(where);
-          return false;
-        }
-        psFree(query);
-  }
-  {
     psString query = pxDataGet("addtool_revertminidvodbprocessed.sql");
     if (!query) {
