Changed RS logic to allow querying for open start and end times (i.e. from and to parameters may be either or both null)