Add support for watt tracking in DB

Remove unused function