fix test failure
implemented database loading