db migration fixed