Make sure timeSpan in backdrop data is correct

Timespan was hardcoded to be week, even if the query specified to
collect monthly or daily data. This is now specified based on the
frequency value specified in the query.