Index: trunk/ppMerge/src/ppMergeFiles.c
===================================================================
--- trunk/ppMerge/src/ppMergeFiles.c	(revision 18025)
+++ trunk/ppMerge/src/ppMergeFiles.c	(revision 18030)
@@ -34,5 +34,5 @@
 {
     pmFPAfile *file = pmFPAfileSelectSingle(config->files, "PPMERGE.INPUT", num);
-    if (!pmReadoutReadChunk(readout, file->fits, 0, rows, 0)) {
+    if (!pmReadoutReadChunk(readout, file->fits, 0, rows, 0, config->database)) {
         psError(PS_ERR_UNKNOWN, false, "Unable to read readout.");
         return false;
@@ -41,5 +41,5 @@
     if (psMetadataLookupBool(&mdok, config->arguments, "INPUTS.MASKS")) {
         pmFPAfile *file = pmFPAfileSelectSingle(config->files, "PPMERGE.INPUT.MASK", num);
-        if (!pmReadoutReadChunkMask(readout, file->fits, 0, rows, 0)) {
+        if (!pmReadoutReadChunkMask(readout, file->fits, 0, rows, 0, config->database)) {
             psError(PS_ERR_UNKNOWN, false, "Unable to read readout mask.");
             return false;
@@ -48,5 +48,5 @@
     if (psMetadataLookupBool(&mdok, config->arguments, "INPUTS.WEIGHTS")) {
         pmFPAfile *file = pmFPAfileSelectSingle(config->files, "PPMERGE.INPUT.WEIGHT", num);
-        if (!pmReadoutReadChunkWeight(readout, file->fits, 0, rows, 0)) {
+        if (!pmReadoutReadChunkWeight(readout, file->fits, 0, rows, 0, config->database)) {
             psError(PS_ERR_UNKNOWN, false, "Unable to read readout weight.");
             return false;
Index: trunk/ppMerge/src/ppMergeLoop.c
===================================================================
--- trunk/ppMerge/src/ppMergeLoop.c	(revision 18025)
+++ trunk/ppMerge/src/ppMergeLoop.c	(revision 18030)
@@ -165,5 +165,5 @@
                     #define READ_CHUNK(NAME,TYPE) { \
                         pmFPAfile *file = pmFPAfileSelectSingle(config->files, NAME, i); \
-                        if (!pmReadoutReadChunk##TYPE(inRO, file->fits, 0, rows, 0)) { \
+                        if (!pmReadoutReadChunk##TYPE(inRO, file->fits, 0, rows, 0, config->database)) { \
                             psError(PS_ERR_IO, false, "Unable to read chunk %d for file %s %d", \
                                     numChunk, NAME, i); \
@@ -219,5 +219,5 @@
                     #define MORE_CHUNK(NAME,TYPE) { \
                         pmFPAfile *file = pmFPAfileSelectSingle(config->files, NAME, i); \
-                        more &= pmReadoutMore##TYPE(inRO, file->fits, 0, rows); \
+                        more &= pmReadoutMore##TYPE(inRO, file->fits, 0, rows, config->database); \
                     }
 
