better to use either a simple function, or even better, uninstall.php. And an extra SQL query on each page load is an obvious waste of resources.