Added migration code so we don't break beta installations