Index: trunk/ippTools/src/regtool.c
===================================================================
--- trunk/ippTools/src/regtool.c	(revision 6338)
+++ trunk/ippTools/src/regtool.c	(revision 6341)
@@ -86,5 +86,5 @@
             psMetadataAddStr(where, PS_LIST_TAIL, "camera", 0, NULL,
                 newFrame->exposure->camera);
-            psArray *configs = p0CameraConfigSelectRowObjects(config->database, where, MAX_ROWS);
+            psArray *configs = p0CameraConfigSelectRowObjects(config->dbh, where, MAX_ROWS);
             psFree(where);
             // if there is no match then we default to sending into into p2
@@ -94,5 +94,5 @@
                     newFrame->exposure
                 );
-                p2PendingExpInsertObject(config->database, p2PendingExp);
+                p2PendingExpInsertObject(config->dbh, p2PendingExp);
                 psFree(p2PendingExp);
                 continue;
@@ -108,5 +108,5 @@
                         newFrame->exposure
                     );
-                    p1PendingExpInsertObject(config->database, p1PendingExp);
+                    p1PendingExpInsertObject(config->dbh, p1PendingExp);
                     psFree(p1PendingExp);
                 }
@@ -118,5 +118,5 @@
                         newFrame->exposure
                     );
-                    p2PendingExpInsertObject(config->database, p2PendingExp);
+                    p2PendingExpInsertObject(config->dbh, p2PendingExp);
                     psFree(p2PendingExp);
                 }
