you could also use influxdb.ping() to make sure a connection is established