Pact hotfix cont'd

fixes DOT scheduled visit report for pact folk - interval/date range works
csv download/view works
dot calendar view fix date expansion query - this is pretty importnat fix for them