Index: trunk/ippTools/src/pxframes.c
===================================================================
--- trunk/ippTools/src/pxframes.c	(revision 6337)
+++ trunk/ippTools/src/pxframes.c	(revision 6341)
@@ -79,5 +79,5 @@
     PS_ASSERT_PTR_NON_NULL(config, NULL); \
  \
-    psArray *exposures = exptype##SelectRowObjects(config->database, \
+    psArray *exposures = exptype##SelectRowObjects(config->dbh, \
         config->where, MAX_ROWS); \
     if (!exposures) { \
@@ -97,5 +97,5 @@
             exposure->exp_id); \
  \
-        psArray *images = imfiletype##SelectRowObjects(config->database, where, \
+        psArray *images = imfiletype##SelectRowObjects(config->dbh, where, \
             MAX_ROWS); \
         psFree(where); \
@@ -155,11 +155,11 @@
 {
     PS_ASSERT_PTR_NON_NULL(config, false);
-    PS_ASSERT_PTR_NON_NULL(config->database, false);
+    PS_ASSERT_PTR_NON_NULL(config->dbh, false);
     PS_ASSERT_PTR_NON_NULL(frame, false);
 
-    psDB *dbh = config->database;
+    psDB *dbh = config->dbh;
 
     if (!rawScienceExpInsertObject(dbh, frame->exposure)) {
-        psError(PS_ERR_UNKNOWN, false, "database access failed");
+        psError(PS_ERR_UNKNOWN, false, "dbh access failed");
         return false;
     }
@@ -168,5 +168,5 @@
     for (long i = 0; i < images->n; i++) {
         if (!rawImfileInsertObject(dbh, images->data[i])) {
-            psError(PS_ERR_UNKNOWN, false, "database access failed");
+            psError(PS_ERR_UNKNOWN, false, "dbh access failed");
             return false;
         }
@@ -214,11 +214,11 @@
 {
     PS_ASSERT_PTR_NON_NULL(config, false);
-    PS_ASSERT_PTR_NON_NULL(config->database, false);
+    PS_ASSERT_PTR_NON_NULL(config->dbh, false);
     PS_ASSERT_PTR_NON_NULL(frame, false);
 
-    psDB *dbh = config->database;
+    psDB *dbh = config->dbh;
 
     if (!rawDetrendExpInsertObject(dbh, frame->exposure)) {
-        psError(PS_ERR_UNKNOWN, false, "database access failed");
+        psError(PS_ERR_UNKNOWN, false, "dbh access failed");
         return false;
     }
@@ -227,5 +227,5 @@
     for (long i = 0; i < images->n; i++) {
         if (!rawImfileInsertObject(dbh, images->data[i])) {
-            psError(PS_ERR_UNKNOWN, false, "database access failed");
+            psError(PS_ERR_UNKNOWN, false, "dbh access failed");
             return false;
         }
