add spec and fix db project