Fix giving and receiving amounts

Fixes #1127, and a few other bugs (including the 4th item of #2630).
I don't like the idea of updating the tips table. It's designed for rows to be immutable. What other options do we have?