Fix db routes