- fix get time for influxdb
- call execute query to check threshold for velocity