Yes quite happy to share code. I would just have to go back through my projects and find it.
However, I wouldn't reckon doing this, it took hours/days of code writing and not to mention the maintenance. I have since discovered InfluxDB, Grafana and Node Red.
InfluxDB is a purpose built time series database built for trending historical data, grafan takes out all the hard work with querying databases and it provides visually appealing dashboards. Combined with node-red it takes roughly 5 mins to set this software stack up compared to hours/days of tinkering in Visual Basic code.
If you would still like the source code let me know.