migrate Data ForeignKey to Application