How to get the latest only records in table , using influxdb as datasource