Index: /trunk/ippTools/src/magictool.c
===================================================================
--- /trunk/ippTools/src/magictool.c	(revision 15338)
+++ /trunk/ippTools/src/magictool.c	(revision 15339)
@@ -524,4 +524,45 @@
 {
     PS_ASSERT_PTR_NON_NULL(config, false);
+
+    bool status = false;
+    psString magic_id = psMetadataLookupStr(&status, config->args, "-magic_id");
+    if (!status) {
+        psError(PS_ERR_UNKNOWN, false, "failed to lookup value for -magic_id");
+        return false;
+    }
+    if (!magic_id) {
+        psError(PS_ERR_UNKNOWN, true, "-magic_id is required");
+        return false;
+    }
+
+    psString node = psMetadataLookupStr(&status, config->args, "-node");
+    if (!status) {
+        psError(PS_ERR_UNKNOWN, false, "failed to lookup value for -node");
+        return false;
+    }
+    if (!node) {
+        psError(PS_ERR_UNKNOWN, true, "-node is required");
+        return false;
+    }
+
+    psString uri = psMetadataLookupStr(&status, config->args, "-uri");
+    if (!status) {
+        psError(PS_ERR_UNKNOWN, false, "failed to lookup value for -uri");
+        return false;
+    }
+    if (!uri) {
+        psError(PS_ERR_UNKNOWN, true, "-uri is required");
+        return false;
+    }
+
+    if (!magicNodeResultInsert(config->dbh,
+                (psS64)atoll(magic_id),
+                node,
+                uri
+        )) {
+        psError(PS_ERR_UNKNOWN, false, "database error");
+        return false;
+    }
+
     return true;
 }
