Drop views in correct order

Reorder DROP VIEW queries to take into account dependencies.
Merge pull request #1 from lzhang/reorder-uninstall

Drop views in correct order