Create a new LeiosDbHandle
This is high-level enough to be possible to be mocked. The in-memory implementation might not be correct just yet, but the interface seems to work. Also dropped some unused intermediary functions and abstractions.