add spec and fix db project
fixed