implemeted today for sf_queryPeriod, fixed whatsClosed query