I use Azure IoT Hub and Stream Analytics to write messages which comes from devices to Sql. Every message has a device id. I need to determine database name from device id.