added defstruct for test db