Index: /trunk/ippTools/src/pztool.c
===================================================================
--- /trunk/ippTools/src/pztool.c	(revision 7969)
+++ /trunk/ippTools/src/pztool.c	(revision 7970)
@@ -161,13 +161,13 @@
     psFree(pending);
 
+    // check for completed exps
+    if (!pzsearchFlushPendingExp(config)) {
+        psError(PS_ERR_UNKNOWN, false, "pzsearchFlushPendingExp() failed");
+        return false;
+    }
+
     // point of no return 
     if (!psDBCommit(config->dbh)) {
         psError(PS_ERR_UNKNOWN, false, "database error");
-        return false;
-    }
-
-    // check for completed exps
-    if (!pzsearchFlushPendingExp(config)) {
-        psError(PS_ERR_UNKNOWN, false, "pzsearchFlushPendingExp() failed");
         return false;
     }
@@ -242,6 +242,4 @@
             // exp has no coresponding imfiles
 
-            // XXX start transaction
-
             psArray *nukeMe = psArrayAlloc(1);
             nukeMe->n = 0;
@@ -251,12 +249,9 @@
             if (!status) {
                 psError(PS_ERR_UNKNOWN, false, "dbh access failed");
-                // XXX rollback transaction
                 return false;
             }
-
-            // XXX commit transaction
-        }
-    }
-
-    return true;
-}
+        }
+    }
+
+    return true;
+}
