Index: trunk/ippTools/src/p2insertPendingFrames.c
===================================================================
--- trunk/ippTools/src/p2insertPendingFrames.c	(revision 6336)
+++ trunk/ippTools/src/p2insertPendingFrames.c	(revision 6341)
@@ -19,5 +19,5 @@
         psMetadataAddStr(where, PS_LIST_TAIL, "exp_id", PS_META_REPLACE, "==",
             rawFrame->exposure->exp_id);
-        psArray *exposures = p2PendingExpSelectRowObjects(config->database,
+        psArray *exposures = p2PendingExpSelectRowObjects(config->dbh,
             where, MAX_ROWS);
         psFree(where);
@@ -67,13 +67,13 @@
         }
         
-        if (!p2PendingExpInsertObject(config->database, pendingExposure)) {
-            psError(PS_ERR_UNKNOWN, false, "database access failed");
+        if (!p2PendingExpInsertObject(config->dbh, pendingExposure)) {
+            psError(PS_ERR_UNKNOWN, false, "dbh access failed");
             return false;
         }
 
         for (int i = 0; i < pendingImages->n; i++) {
-            if (!p2PendingImfileInsertObject(config->database,
+            if (!p2PendingImfileInsertObject(config->dbh,
                     pendingImages->data[i])) {
-                psError(PS_ERR_UNKNOWN, false, "database access failed");
+                psError(PS_ERR_UNKNOWN, false, "dbh access failed");
                 return false;
             }
