fix db regression