Nodejs database data logging with XML, MQTT and HTTP support