Fixes wallet summaries for good

Join on something thats ALWAYS available and then find what we need as far as totals are concerned in sub queries.

Looks like a also removed a lot of trailing whitespace by accident