basic query to retrieve customers and total spent