What about running nodered and store it in a mysql database or influxdb.
Headstart: MQTT in Node-RED [HowTo]