moved foamPrintDb back into if-debug