Added uninstall.php

Added more cleanup code during uninstall. Also added some checks to
perform when adding an external database. This is incomplete.