Update output. Use of plain query to update balances.