Add DatabaseServer abstraction, with default and minimal implementations.
Use minimal server impl for tests.