Added more query function in InfluxDB
Moved function definition out of template.
Merge pull request #218 from mavimo/feature/influx-query-functions

[InfluxDB] Added more query functions