Added reroute fields to DB file

Change-Id: Ie458932fba3192b4c737bfeaa5ca3f64726c010d
diff --git a/TestON/tests/SCPFmaxIntents/SCPFmaxIntents.py b/TestON/tests/SCPFmaxIntents/SCPFmaxIntents.py
index 834e968..2fafc1e 100644
--- a/TestON/tests/SCPFmaxIntents/SCPFmaxIntents.py
+++ b/TestON/tests/SCPFmaxIntents/SCPFmaxIntents.py
@@ -416,7 +416,7 @@
             dbFileName="/tmp/MaxIntentDB"
             dbfile = open(dbFileName, "a")
             temp = str(maxIntents) + ","
-            temp += str(maxFlows) + "\n"
+            temp += str(maxFlows) + ","
             dbfile.write(temp)
             dbfile.close()
         except IOError:
@@ -548,6 +548,16 @@
         main.log.info("Installed intents: " + str(maxIntents) +
                       "\nAdded flows: " + str(maxFlows))
 
+        try:
+            dbFileName="/tmp/MaxIntentDB"
+            dbfile = open(dbFileName, "a")
+            temp = str(maxIntents) + ","
+            temp += str(maxFlows) + "\n"
+            dbfile.write(temp)
+            dbfile.close()
+        except IOError:
+            main.log.warn("Error opening " + dbFileName + " to write results.")
+
         # Stopping mininet
         if main.switch == "of":
             main.log.info("Stopping mininet")