public void LoadData(bool forceSync)
        {
            SelectTaskFromDatabase();

            try
            {
                if (forceSync)
                {
                    using (Database db = new Database())
                    {
                        if (db.DatabaseExists() == true)
                        {
                            // Create the database.
                            db.DeleteDatabase();
                        }
                    }
                }

                if (forceSync || !_Tasks.Any())
                {
                    LoadProjects();
                }

            }
            catch (SystemException _ex)
            {
                _ConnectionStatus = _ex.Message;
            }

        }
 // Code to execute on Unhandled Exceptions
 private void Application_UnhandledException(object sender, ApplicationUnhandledExceptionEventArgs e)
 {
     MessageBox.Show(e.ExceptionObject.Message);
     
      using (Database db = new Database())
     {
         if (db.DatabaseExists())
         {
             // Create the database.
             db.DeleteDatabase();
         }
     }
     
     if (System.Diagnostics.Debugger.IsAttached)
     {
         // An unhandled exception has occurred; break into the debugger
         System.Diagnostics.Debugger.Break();
     }
 }