fixing db migrate error