fix db setup