Store money by IDs, fixes #2