Remove unused imports and check record insertions.
Add test for SetValues and GetValues of ConfigurationOption.

Also refactors the methods to pass the database connection along
and fix problems introduced by earlier changes.
Share database initialisation code.

To initialise the database at startup, extend TestDAObject.