use raw sql for fetching the timeseries values