add base database class