updated to use the energy database rather than skeleton
added monitoring code (which currently inserts energy readings into HWDB)