changed DROP TABLE order to avoid FK violation