Index: trunk/ippTools/src/pxchip.c
===================================================================
--- trunk/ippTools/src/pxchip.c	(revision 14023)
+++ trunk/ippTools/src/pxchip.c	(revision 14065)
@@ -75,4 +75,5 @@
     if (!chipRunInsert(config->dbh,
             0x0,
+            (psS64)atoll(exp_id),
             "run",      // state                
             workdir,
@@ -91,30 +92,4 @@
     }
 
-#if 0
-    // get the chip_id
-    long chip_id = psDBLastInsertID(config->dbh);
-#endif
-
-    // populate the chipInputImfile table from rawImfile based on exp_id,
-    // where the coresponding newExp.state entry is set to stop
-    psString query = pxDataGetCached("chiptool_queuerawimfile.sql");
-    if (!query) {
-        psError(PXTOOLS_ERR_DATA, false, "failed to retreive SQL statement");
-        return false;
-    }
-
-    // queue the imfiles for the exp_id
-    if (!p_psDBRunQuery(config->dbh, query, exp_id)) {
-        psError(PS_ERR_UNKNOWN, false, "database error");
-        return false;
-    }
-
-    // just to be safe, we should have changed at least one row
-    if (psDBAffectedRows(config->dbh) < 1) {
-        psError(PS_ERR_UNKNOWN, false,
-                "no rows affected - should have changed at least one row");
-        return false;
-    }
-
     // point of no return
     if (!psDBCommit(config->dbh)) {
