Index: trunk/ppStats/src/ppStatsCell.c
===================================================================
--- trunk/ppStats/src/ppStatsCell.c	(revision 18137)
+++ trunk/ppStats/src/ppStatsCell.c	(revision 18168)
@@ -6,5 +6,5 @@
                    pmFPAview *view,  // View for analysis
                    ppStatsData *data,   // The data
-                   const pmConfig *config // Configuration
+                   pmConfig *config // Configuration
     )
 {
@@ -49,5 +49,5 @@
         // extract from existing headers
         if (cell->hdu) {
-            if (fits && !pmCellReadHeader(cell, fits, config->database)) {
+            if (fits && !pmCellReadHeader(cell, fits, config)) {
                 psError (PS_ERR_IO, false, "trouble reading cell header\n");
                 psFree(cellResults);
@@ -65,10 +65,10 @@
     // Extract Concept values
     if (psListLength(data->concepts) > 0) {
-        if (fits && cell->hdu && !pmCellReadHeader(cell, fits, config->database)) {
+        if (fits && cell->hdu && !pmCellReadHeader(cell, fits, config)) {
             psError (PS_ERR_IO, false, "trouble reading cell header\n");
             psFree(cellResults);
             return PS_EXIT_DATA_ERROR;
         }
-        pmConceptsReadCell(cell, PM_CONCEPT_SOURCE_ALL, false, config->database);
+        pmConceptsReadCell(cell, PM_CONCEPT_SOURCE_ALL, false, config);
         p_ppStatsGetMetadata(cellResults, cell->concepts, data->concepts);
     }
@@ -77,5 +77,5 @@
     if (data->doStats || psListLength(data->summary)) {
         // Read the image pixel data
-        if (fits && !pmCellRead(cell, fits, config->database)) {
+        if (fits && !pmCellRead(cell, fits, config)) {
             psError (PS_ERR_IO, false, "trouble reading cell data\n");
             psFree(cellResults);
