Implement customer group queries. #149