Set up an interface to allow mocking Database interface.
TODO: Add a mock for Node.