Improving an Azure Function that writes IoT Hub data to TimescaleDB