Improve GetDataAvailability query

- Add get time period from series table if data are available (first/last time stamp)