Index: trunk/ippTools/src/dettool.c
===================================================================
--- trunk/ippTools/src/dettool.c	(revision 14269)
+++ trunk/ippTools/src/dettool.c	(revision 14270)
@@ -6974,9 +6974,5 @@
     }
 
-    // XXX this is going in without checking that the det_id is valid.
-    // it seems like it be better to be using foreign key constraints rather
-    // then having to resort to a seperate query (and locking) to check that
-    // the det_id is valid
-    if (!detNormalizedImfileInsert(config->dbh,
+    if (!detRegisteredImfileInsert(config->dbh,
                                    (psS64)atoll(det_id),
                                    0,  // the iteration is fixed at 0
Index: trunk/ippTools/src/pxtables.c
===================================================================
--- trunk/ippTools/src/pxtables.c	(revision 14269)
+++ trunk/ippTools/src/pxtables.c	(revision 14270)
@@ -79,4 +79,5 @@
     CREATE_TABLE(detResidExpCreateTable);
     CREATE_TABLE(detRunSummaryCreateTable);
+    CREATE_TABLE(detRegisteredImfileCreateTable);
     CREATE_TABLE(warpRunCreateTable);
     CREATE_TABLE(warpInputExpCreateTable);
@@ -159,4 +160,5 @@
     DROP_TABLE(detResidExpDropTable);
     DROP_TABLE(detRunSummaryDropTable);
+    DROP_TABLE(detRegisteredImfileDropTable);
     DROP_TABLE(warpRunDropTable);
     DROP_TABLE(warpInputExpDropTable);
