[py2py3] Syntax error when dropping MariaDB database
**Impact of the bug**
WMCore unit tests

**Describe the bug**
While commissioning the Python3 Jenkins CI, I noticed many unit tests failing with a syntax error when clearing the test SQL database, see [1].

**How to reproduce it**
Running this module unit tests:
WMCore_t/WMBS_t/JobSplitting_t/EventBased_t.py
with this option:
```
--reallyDeleteMyDatabaseAfterEveryTest=true
```

**Expected behavior**
Fix the SQL syntax such that we can run unit tests in BOT mode and cleaning up the database between tests.

**Additional context and error message**
[1]
```
======================================================================
ERROR: _test150EventMultipleFileSplit_
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/build/cmsbld/jenkins/workspace/DMWM-WMAgentPy3-TestAll/SLICE/2/label/cms-dmwm-cc7/code/test/python/WMCore_t/WMBS_t/JobSplitting_t/EventBased_t.py", line 43, in setUp
    self.testInit.setDatabaseConnection(destroyAllDatabase=True)
  File "/build/cmsbld/jenkins/workspace/DMWM-WMAgentPy3-TestAll/SLICE/2/label/cms-dmwm-cc7/code/src/python/WMQuality/TestInit.py", line 154, in setDatabaseConnection
    self.clearDatabase()
  File "/build/cmsbld/jenkins/workspace/DMWM-WMAgentPy3-TestAll/SLICE/2/label/cms-dmwm-cc7/code/src/python/WMQuality/TestInit.py", line 285, in clearDatabase
    self.init.clearDatabase()
  File "/build/cmsbld/jenkins/workspace/DMWM-WMAgentPy3-TestAll/SLICE/2/label/cms-dmwm-cc7/code/src/python/WMCore/WMInit.py", line 205, in clearDatabase
    raise WMInitException(msg)
WMCore.WMInit.WMInitException: <@========== WMException Start ==========@>
Exception Class: WMInitException
Message: Critical error while attempting to delete entire DB!
(MySQLdb._exceptions.ProgrammingError) (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'b'WMCore_unit_test'' at line 1")
[SQL: DROP DATABASE b'WMCore_unit_test']
```
diff --git a/src/python/WMCore/Database/DBFormatter.py b/src/python/WMCore/Database/DBFormatter.py
index 4175ec6c1..b02c8c3e8 100644
--- a/src/python/WMCore/Database/DBFormatter.py
+++ b/src/python/WMCore/Database/DBFormatter.py
@@ -11,6 +11,7 @@ from builtins import str, bytes, zip, range
 import datetime
 import time
 import types
+import sys
 
 from WMCore.DataStructs.WMObject import WMObject
 
@@ -77,7 +78,7 @@ class DBFormatter(WMObject):
                 entry = {}
                 for index in range(0, len(descriptions)):
                     # WARNING: Oracle returns table names in CAP!
-                    if isinstance(i[index], str):
+                    if isinstance(i[index], str) and sys.version_info[0] == 2:
                         entry[str(descriptions[index].lower())] = i[index].encode("utf-8")
                     else:
                         entry[str(descriptions[index].lower())] = i[index]
['src/python/WMCore/Database/DBFormatter.py']