Work with transactions. Attempts to make categories work.
Fix categories saving.
Saving transactions.