Index: /branches/end_stage/ippTools/src/regtool.c
===================================================================
--- /branches/end_stage/ippTools/src/regtool.c	(revision 16125)
+++ /branches/end_stage/ippTools/src/regtool.c	(revision 16126)
@@ -704,4 +704,8 @@
     if (detrend) {
         psFree(newExp);
+        if (!psDBCommit(config->dbh)) {
+            psError(PS_ERR_UNKNOWN, false, "database error");
+            return false;
+        }
         return true;
     }
