Store objects as JSON.
Implement transaction.