Index: trunk/ippTools/src/pxinject.c
===================================================================
--- trunk/ippTools/src/pxinject.c	(revision 17859)
+++ trunk/ippTools/src/pxinject.c	(revision 17872)
@@ -91,9 +91,9 @@
 
     if (!newExpInsert(config->dbh,
-                0x0, // exp_id
+                0x0,    // exp_id
                 tmp_exp_name,
                 tmp_camera,
                 tmp_telescope,
-                "reg", // state
+                "reg",  // state
                 workdir,
                 "dirty",
@@ -101,6 +101,7 @@
                 dvodb,
                 tess_id,
-            end_stage,
-              label
+                end_stage,
+                label,
+                NULL    // epoch
             )
         ) {
@@ -141,5 +142,5 @@
 
     // insert with error flag state set to 0 (no errors)
-    if (!newImfileInsert(config->dbh, (psS64)atoll(exp_id), tmp_class_id, uri)) {
+    if (!newImfileInsert(config->dbh, (psS64)atoll(exp_id), tmp_class_id, uri, NULL)) {
         psError(PS_ERR_UNKNOWN, false, "database error");
         return false;
Index: trunk/ippTools/src/pztool.c
===================================================================
--- trunk/ippTools/src/pztool.c	(revision 17859)
+++ trunk/ippTools/src/pztool.c	(revision 17872)
@@ -111,5 +111,6 @@
             camera,
             telescope,
-            uri
+            uri,
+            NULL  // epoch
         )) {
         psError(PS_ERR_UNKNOWN, false, "database error");
@@ -370,5 +371,6 @@
             class_id,
             uri,
-            code
+            code,
+            NULL    // epoch
     )) {
         psError(PS_ERR_UNKNOWN, false, "database error");
@@ -497,5 +499,6 @@
                     tess_id,            // tess_id
                     end_stage,          // end_stage
-                   label
+                    label,
+                    NULL                // epoch
                 )
         ) {
Index: trunk/ippTools/src/regtool.c
===================================================================
--- trunk/ippTools/src/regtool.c	(revision 17859)
+++ trunk/ippTools/src/regtool.c	(revision 17872)
@@ -280,5 +280,6 @@
         object,
         hostname,
-        code
+        code,
+        NULL
     )) {
         psError(PS_ERR_UNKNOWN, false, "database error");
@@ -630,6 +631,11 @@
     psMetadata *row = output->data[0];
     // convert metadata into a newExp object
+    psMetadataConfigPrint(stdout, row);
     newExpRow *newExp = newExpObjectFromMetadata(row);
     psFree(output);
+    if (!newExp) {
+        psError(PS_ERR_UNKNOWN, false, "this should not happen");
+        return false;
+    }
 
     // carry through these values
@@ -700,5 +706,6 @@
         0.0,
         hostname,
-        code
+        code,
+        NULL
     )) {
         // rollback
