add spec for db require db