Index: trunk/ippTools/src/pxinject.c
===================================================================
--- trunk/ippTools/src/pxinject.c	(revision 9028)
+++ trunk/ippTools/src/pxinject.c	(revision 9057)
@@ -52,4 +52,13 @@
     bool status = false;
 
+    psString exp_tag = psMetadataLookupStr(&status, config->args, "-exp_tag");
+    if (!status) {
+        psError(PS_ERR_UNKNOWN, false, "failed to lookup value for -exp_tag");
+        return false;
+    }
+    if (!exp_tag) {
+        psError(PS_ERR_UNKNOWN, true, "-exp_tag is required");
+        return false;
+    }
     psString exp_id = psMetadataLookupStr(&status, config->args, "-exp_id");
     if (!status) {
@@ -98,5 +107,5 @@
     }
 
-    if (!newExpInsert(config->dbh, exp_id, camera, telescope, exp_type, imfiles)) {
+    if (!newExpInsert(config->dbh, exp_tag, exp_id, camera, telescope, exp_type, imfiles)) {
         psError(PS_ERR_UNKNOWN, false, "database error");
         return false;
@@ -110,11 +119,11 @@
     bool status = false;
 
-    psString exp_id = psMetadataLookupStr(&status, config->args, "-exp_id");
+    psString exp_tag = psMetadataLookupStr(&status, config->args, "-exp_tag");
     if (!status) {
-        psError(PS_ERR_UNKNOWN, false, "failed to lookup value for -exp_id");
+        psError(PS_ERR_UNKNOWN, false, "failed to lookup value for -exp_tag");
         return false;
     }
-    if (!exp_id) {
-        psError(PS_ERR_UNKNOWN, true, "-exp_id is required");
+    if (!exp_tag) {
+        psError(PS_ERR_UNKNOWN, true, "-exp_tag is required");
         return false;
     }
@@ -147,5 +156,5 @@
     }
 
-    if (!newImfileInsert(config->dbh, exp_id, class, class_id, uri)) {
+    if (!newImfileInsert(config->dbh, exp_tag, class, class_id, uri)) {
         psError(PS_ERR_UNKNOWN, false, "database error");
         return false;
