Index: trunk/FACT++/src/scheduler.cc
===================================================================
--- trunk/FACT++/src/scheduler.cc	(revision 11021)
+++ trunk/FACT++/src/scheduler.cc	(revision 11022)
@@ -156,6 +156,4 @@
     string fDBName;
 
-
-
     int Schedule()
     {
@@ -167,6 +165,7 @@
         time_duration repostime(0, 5, 0);
         //ptime startsched=microsec_clock::local_time();
-        ptime startsched(microsec_clock::local_time());
-        ptime stopsched=startsched+years(1);
+
+        const ptime startsched(microsec_clock::local_time());
+        const ptime stopsched=startsched+years(1);
 
         ostringstream str;
@@ -198,11 +197,12 @@
         }
 
+        cout << (string)what[9] << " | " << fDBName << " | " << endl;
+
+
         const string user   = what[2];
         const string passwd = what[4];
         const string server = what[5];
-        string db = what[9];
-        if (fDBName.size()!=0)
-            db = fDBName;
-        const int port      = atoi(string(what[7]).c_str());
+        const string db     = fDBName.empty() ? what[9] : fDBName;
+        const int    port   = atoi(string(what[7]).c_str());
 
         ostringstream dbnamemsg;
@@ -252,6 +252,6 @@
 
         ObservationParameters olist[res.num_rows()];
-        vector<FixedObs> obsfixedlist;
-        vector<StdObs> obsstdlist;
+        vector<FixedObs>     obsfixedlist;
+        vector<StdObs>       obsstdlist;
         vector<ScheduledObs> obslist;
         vector<ScheduledRun> runlist;
