Load functional areas before the events data.
Merge pull request #635 from akatsoulas/fix-functional-area

Load functional areas before the events data.
Fix error on data migration.
Merge pull request #636 from akatsoulas/fix-profile-migration

Fix error on data migration.