[FEATURE] Move balances sql query from controller to account model