fixed issue with db migration