- move value tuple generation into own function to make it reuseable
- change "log" table to contain history entries and not the current status
- put current status only into "item" table
- fix duration calculation for "log" table
- when stopping the plugin dump all current values into "log" and "item"
  table