Persistence calculation of energy usage

Confident that your averageSince is addressing the correct database?

This thread contains some interesting considerations