Converts the pulse mqtt message from my energy monitor into a counter stored in a mysql table.