Improved SQL in WattDepotPersistenceImpl.