Index: trunk/ppMerge/src/ppMergeFiles.c
===================================================================
--- trunk/ppMerge/src/ppMergeFiles.c	(revision 17227)
+++ 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;
