made it query the database only once for electricity series;