Fix broken db migration