--- tagadelic.install.orig      2017-03-02 10:51:22.790815024 -0600
+++ tagadelic.install   2017-03-02 10:51:29.730501210 -0600
@@ -13,7 +13,9 @@
   // We want to remove cache entries that were added as CACHE_PERMANENT. The
   // cid's depend on the taxonomies involved but we can just remove anything
   // with a cid prefixed tagadelic_cache_
-  $ret[] = update_sql("DELETE FROM {cache} WHERE cid LIKE 'tagadelic_cache_%'");
+  $ret[] = db_delete('cache')
+    ->condition('cid', 'tagadelic_cache_%', 'LIKE')
+    ->execute();
 
   return $ret;
 }