Fixed db migration