reverse order of dropping tables to match dependencies