PGconn     *conn;
     PGresult   *res;
 
+    if (argc != 4)
+    {
+        fprintf(stderr, "Usage: meta <object_uri> <body_file> <type_file>\n");
+        exit(1);
+    }
+
     /*
      * begin, by setting the parameters for a backend connection if the
      * parameters are null, then the system will try to use reasonable
      */
 
     /* make a connection to the database */
-    conn = PQconnectdb("user=helm dbname=mowgli");
+    conn = PQconnectdb("user=helm dbname=mowgli_test");
 
     /*
      * check to see that the backend connection was successfully made
     init_symbol_table();
 
     // We process the body
-    if (!stat("tmp/body.xml",&buf)) 
+    if (!stat(argv[2],&buf)) 
     {
-        yyin = fopen("tmp/body.xml", "r");
+        yyin = fopen(argv[2], "r");
         position = INBODY;
         yylex();
         fclose(yyin);
      }
 
     // We process the type
-    yyin = fopen("tmp/type.xml", "r");
+    yyin = fopen(argv[3], "r");
     position = INTYPE;
     first_child = HERE;
     no_open_source = 0;
     yylex(); 
     fclose(yyin);
     print_all(argv[1],conn);
+
+    return 0;
 } 
 
 
 
 
     PGresult   *res;
 
+    if (argc != 3)
+    {
+        fprintf(stderr, "Usage: meta_ind <object_uri> <inductive_type_file>\n");
+        exit(1);
+    }
+
     /*
      * begin, by setting the parameters for a backend connection if the
      * parameters are null, then the system will try to use reasonable
     source_uri = malloc((sizeof('a')*2000));
     source_uri_prefix=argv[1];
     /* fprintf(stderr,"qua"); */
-    yyin = fopen("tmp/inductive_type.xml", "r");
+    yyin = fopen(argv[2], "r");
     yylex();
+
+    return 0;
 }
 
 search(uri,first_child,position,depth)