repair tube after db migrate