Index: trunk/ippTools/src/p2updatePending.c
===================================================================
--- trunk/ippTools/src/p2updatePending.c	(revision 6336)
+++ trunk/ippTools/src/p2updatePending.c	(revision 6341)
@@ -10,5 +10,5 @@
     // select all of the exposures which are still pending
     psMetadataAddS32 (where, PS_LIST_TAIL, "STATE", 0, "==", PX_MODE_PENDING);
-    psArray *exposures = p2PendingExpSelectRowObjects (config->database, where, MAX_ROWS);
+    psArray *exposures = p2PendingExpSelectRowObjects (config->dbh, where, MAX_ROWS);
 
     // we will now select all of the matching images which are done
@@ -20,5 +20,5 @@
 	psMetadataAddStr (where, PS_LIST_TAIL, "EXP_ID",     PS_META_REPLACE, "==", exposure->exp_id);
 	psMetadataAddS32 (where, PS_LIST_TAIL, "P2_VERSION", PS_META_REPLACE, "==", exposure->p2_version);
-	psArray *images = p2PendingImfileSelectRowObjects (config->database, where, MAX_ROWS);
+	psArray *images = p2PendingImfileSelectRowObjects (config->dbh, where, MAX_ROWS);
 	if (images->n != exposure->imfiles) {
 	    // free things
@@ -28,5 +28,5 @@
 	// XXX add P2 stats here?
 //	exposure->state = PX_MODE_DONE;
-//	p2PendingExposureUpdateRows (config->database, exposure);
+//	p2PendingExposureUpdateRows (config->dbh, exposure);
     }
     return true;
