diff --git sites/all/modules/contrib/jquerymenu/jquerymenu.install sites/all/modules/contrib/jquerymenu/jquerymenu.install
index 57bcb93..05e09fe 100644
--- sites/all/modules/contrib/jquerymenu/jquerymenu.install
+++ sites/all/modules/contrib/jquerymenu/jquerymenu.install
@@ -27,17 +27,22 @@
   return $schema;
 }
 
-function jquerymenu_update_1() {
-  // This is a one time cleanup to remove blocks and menus that have gotten out of sync.
-  // This update will reset blocks that were created directly by jquery menu
-  // you will need to visit the blocks page after running this to re-enable those blocks.
+/**
+ * 
+ * This is a one time cleanup to remove blocks and menus that have gotten out of sync.
+ * This update will reset blocks that were created directly by jquery menu
+ * you will need to visit the blocks page after running this to re-enable those blocks.
+ * 
+ */
+function jquerymenu_update_7001() {
   $result = db_query("SELECT mid, menu_name FROM {jquerymenus}");
   $enabledmenus = array();
-  while ($enabled = db_fetch_object($result)) {
+  while ($enabled = $result->fetchAssoc()) {
     $title ='';
-    $title = db_result(db_query("SELECT title FROM {menu_custom} WHERE menu_name = '%s'", $enabled->menu_name));
+    $title = db_query("SELECT title FROM {menu_custom} WHERE menu_name = ':menu_name'", 
+              array(":menu_name" => $enabled['menu_name']))->fetchField();
     if (empty($title)) {
-      db_query("DELETE FROM {jquerymenus} WHERE menu_name = '%s'", $enabled->menu_name);
+      db_query("DELETE FROM {jquerymenus} WHERE menu_name = ':menu_name'", array(":menu_name" => $enabled['menu_name']));
       db_query("DELETE FROM {block} WHERE module = 'jquerymenu'");
     }
   }
