Index: /trunk/FACT++/src/fits2sql.cc
===================================================================
--- /trunk/FACT++/src/fits2sql.cc	(revision 19179)
+++ /trunk/FACT++/src/fits2sql.cc	(revision 19180)
@@ -561,11 +561,14 @@
         cout << "\n---------------------- Connecting database -------------------------" << endl;
 
-    Database connection(uri);
-
-    if (verbose>0)
-    {
-        cout << "Client Version: " << connection.client_version() << '\n';
+    if (verbose>0)
+    {
+        cout << "Connecting to database...\n";
+        cout << "Client Version: " << mysqlpp::Connection().client_version() << endl;
+    }
+
+    Database connection(uri); // Keep alive while fetching rows
+
+    if (verbose>0)
         cout << "Server Version: " << connection.server_version() << endl;
-    }
 
     if (print_connection)
Index: /trunk/FACT++/src/root2sql.cc
===================================================================
--- /trunk/FACT++/src/root2sql.cc	(revision 19179)
+++ /trunk/FACT++/src/root2sql.cc	(revision 19180)
@@ -598,11 +598,14 @@
     // Checking for database connection
 
+    if (verbose>0)
+    {
+        cout << "Connecting to database...\n";
+        cout << "Client Version: " << mysqlpp::Connection().client_version() << endl;
+    }
+
     Database connection(uri);
 
     if (verbose>0)
-    {
-        cout << "Client Version: " << connection.client_version() << '\n';
         cout << "Server Version: " << connection.server_version() << endl;
-    }
 
     if (print_connection)
Index: /trunk/FACT++/src/rootifysql.cc
===================================================================
--- /trunk/FACT++/src/rootifysql.cc	(revision 19179)
+++ /trunk/FACT++/src/rootifysql.cc	(revision 19180)
@@ -595,14 +595,13 @@
 
     if (verbose>0)
-        cout << "Connecting to database..." << endl;
-
+    {
+        cout << "Connecting to database...\n";
+        cout << "Client Version: " << mysqlpp::Connection().client_version() << endl;
+    }
 
     Database connection(uri); // Keep alive while fetching rows
 
     if (verbose>0)
-    {
-        cout << "Client Version: " << connection.client_version() << '\n';
         cout << "Server Version: " << connection.server_version() << endl;
-    }
 
     if (print_connection)
