Rearranged tables to be in the alphabetical order and ignore foreign key checks.