fixed account balance queries to grouop by account guid rather than
account name in order to avoid incorrectly grouping multiple accounts
with the same name