improved uninstall.sql