diff --git bot_leash.info bot_leash.info
index 47bfe47..7390f21 100644
--- bot_leash.info
+++ bot_leash.info
@@ -3,4 +3,4 @@ description = "Keeps the bot from talking to strangers (users who are not in an
 package = Bot
 dependencies[] = bot
 php = 5.2
-core = 6.x
+core = 7.x
diff --git bot_leash.install bot_leash.install
index 4bcf273..0ee4ece 100644
--- bot_leash.install
+++ bot_leash.install
@@ -10,5 +10,8 @@
 function bot_leash_install() {
   // It is very important that bot_leash() run first, to prevent other bot modules
   // from acting before it can.
-  db_query("UPDATE {system} SET weight = -88 WHERE name = 'bot_leash'");
+  db_update('system')
+    ->fields(array('weight' => -88))
+    ->condition('name', 'bot_leash')
+    ->execute();
 }
