Correct foreign key syntax errors & convert collector app to South.