Index: trunk/FACT++/src/fits2sql.cc
===================================================================
--- trunk/FACT++/src/fits2sql.cc	(revision 19184)
+++ trunk/FACT++/src/fits2sql.cc	(revision 19185)
@@ -1,4 +1,5 @@
+#include <boost/regex.hpp>
+#include <boost/filesystem.hpp>
 #include <boost/algorithm/string/join.hpp>
-#include <boost/regex.hpp>
 
 #include "Database.h"
@@ -11,4 +12,5 @@
 
 using namespace std;
+namespace fs = boost::filesystem;
 
 // ------------------------------------------------------------------------
@@ -600,5 +602,5 @@
     if (!row_format.empty())
         query += "ROW_FORMAT="+row_format+"\n";
-    query += "COMMENT='created by "+conf.GetName()+"'\n";
+    query += "COMMENT='created by "+fs::path(conf.GetName()).filename().string()+"'\n";
 
 
Index: trunk/FACT++/src/root2sql.cc
===================================================================
--- trunk/FACT++/src/root2sql.cc	(revision 19184)
+++ trunk/FACT++/src/root2sql.cc	(revision 19185)
@@ -1,4 +1,5 @@
+#include <boost/regex.hpp>
+#include <boost/filesystem.hpp>
 #include <boost/algorithm/string/join.hpp>
-#include <boost/regex.hpp>
 
 #include "Database.h"
@@ -15,4 +16,5 @@
 
 using namespace std;
+namespace fs = boost::filesystem;
 
 // ------------------------------------------------------------------------
@@ -637,5 +639,5 @@
     if (!row_format.empty())
         query += "ROW_FORMAT="+row_format+"\n";
-    query += "COMMENT='created by "+conf.GetName()+"'\n";
+    query += "COMMENT='created by "+fs::path(conf.GetName()).filename().string()+"'\n";
 
     // FIXME: Can we omit the catching to be able to print the
