Added debug statement for prev_days export

Main code rev. 2001