fix db routes