Got load DB working. Added initial tests.