selectSingleByUID implemented and getEnergy() updated