DBConnection Closes correctly now.  Shifted a bit of code around.
DB.Connect is no longer called from main().
Initilised each time we call out Database.Login().