Index: /trunk/MagicSoft/Mars/datacenter/macros/insertdataset.C
===================================================================
--- /trunk/MagicSoft/Mars/datacenter/macros/insertdataset.C	(revision 8107)
+++ /trunk/MagicSoft/Mars/datacenter/macros/insertdataset.C	(revision 8108)
@@ -71,5 +71,5 @@
     }
 
-    serv.SetIdSummy(dummy);
+    serv.SetIsDummy(dummy);
 
     cout << "insertdataset" << endl;
@@ -80,5 +80,5 @@
 
     //get source key
-    Int_t sourcekey = serv.QueryNameKEY("Source", source.Data(), kFALSE);
+    Int_t sourcekey = serv.QueryKeyOfName("Source", source.Data(), kFALSE);
     if (sourcekey<0)
     {
Index: /trunk/MagicSoft/Mars/datacenter/macros/insertsequence.C
===================================================================
--- /trunk/MagicSoft/Mars/datacenter/macros/insertsequence.C	(revision 8107)
+++ /trunk/MagicSoft/Mars/datacenter/macros/insertsequence.C	(revision 8108)
@@ -95,5 +95,11 @@
     //get source key
     TString sourcename = sequ.GetValue("Source", "");
-    Int_t sourcekey = serv.QueryNameKEY("Source", sourcename.Data());
+    Int_t sourcekey = serv.QueryKeyOfName("Source", sourcename.Data(), kFALSE);
+    if (sourcekey<0)
+    {
+        cout << "Error - could not get sourcename from DB -> " << flush;
+        cout << "maybe you have the wrong sourcename in your datasetfile" << endl;
+        return 2;
+    }
 
     //get values for the sequence
@@ -163,5 +169,11 @@
     {
         cout << "new source name: " << sourcename << " -> inserting..." << endl;
-        sourcekey = serv.QueryNameKEY("Source", sourcename.Data(), kFALSE);
+        sourcekey = serv.QueryKeyOfName("Source", sourcename.Data(), kFALSE);
+        if (sourcekey<0)
+        {
+            cout << "Error - could not get sourcename from DB -> " << flush;
+            cout << "maybe you have the wrong sourcename in your datasetfile" << endl;
+            return 2;
+        }
         source=Form("%d",sourcekey);
     }
