Index: trunk/ippTools/src/pxwarp.c
===================================================================
--- trunk/ippTools/src/pxwarp.c	(revision 16242)
+++ trunk/ippTools/src/pxwarp.c	(revision 16733)
@@ -65,6 +65,8 @@
     PS_ASSERT_PTR_NON_NULL(config, false);
 
+    // depend on the f-keys to make sure we have a valid cam_id
     if (!warpRunInsert(config->dbh,
         0,          // ID
+        cam_id,
         "warp",     // mode
         "run",      // state
@@ -74,5 +76,6 @@
         tess_id,
         end_stage,
-        NULL        // registered
+        NULL,       // registered
+        false       // magiced
     )) {
         psError(PS_ERR_UNKNOWN, false, "database error");
@@ -80,16 +83,4 @@
     }
 
-    psS64 warp_id = psDBLastInsertID(config->dbh);
-
-    // depend on the f-keys to make sure we have a valid cam_id
-    if (!warpInputExpInsert(config->dbh,
-        warp_id,
-        cam_id,
-        false       // magiced
-    )) {
-        psError(PS_ERR_UNKNOWN, false, "database error");
-        return false;
-    }
-
     return true;
 }
