Add migration logic for submissions
Add migration logic for teams.