Added initial code for StubDB