update bar reading DB code
update bar reading DB code

- This changes bar readings so it only gets full bars and drops any
extra days from the beginning of the time range rather than
the current that can make the last bar go beyond the actual
reading data.
- It now uses the daily reading view to get the range of readings for
bar since that is faster.
- It changes bar group readings to not shrink the range since this
is done in bar meter readings that is used.

OpenEnergyDashboard/OED,OpenEnergyDashboard/OED,OpenEnergyDashboard/OED,OpenEnergyDashboard/OED