delete packages from database when app is uninstalled