install and uninstall database