Added basic database. Supports storing snapshots and transactions.