Investigate DB size and effect of compacting
Initial research to establish:
- How the size of the DB files grows with the amount of data
- Whether the size of the DB files affects the time taken to open and close the DB
- Whether compacting at shutdown affects the size of the DB files
- Whether compacting affects the time taken to open and close the DB
Subtask of #545 (closed).