Drop table in reverse order to avoid mysql error with foreign key