fixed error db route