Replace Temp with Query in class Customer