Renamed lookup to DbAdapter (might rename again)

Also some work on further abstracting loggables.
Looking into ways so only one thing needs to be implemented at a time.
That means phasing out History implementations and rely on specific composition with factories.

So that one has to only make a new Loggable and its corresponding factory.