public static void ViewAllMessages()
 {
     try
     {
         DatabaseAccess.DBConnectionOpen();
         DatabaseAccess.DBViewAllMessages();
     }
     catch (Exception ex)
     {
         Console.WriteLine(ex.Message);
     }
     finally
     {
         DatabaseAccess.DBConnectionClose();
         DatabaseAccess.DBConnectionDispose();
     }
 }