fixed db migrate