Drop views in correct order

Reorder DROP VIEW queries to take into account dependencies.