Add support for watt tracking in DB

Add minor changes to DB.
Change adjustTemperature function.