Event callbacks and energyrate in database and used in code
Event callbacks and energyrate in database and used in code- part 2