old_contents: from simplemysql import SimpleMysql
  
  class LogDatabase:
      def __init__(self, **args):
          self.dbParams = args
  
      def getParams(self):
          return self.dbParams
  
new_contents: from simplemysql import SimpleMysql
  
  class LogDatabase:
      def __init__(self, **args):
          self.dbParams = args
          self.conn = SimpleMysql(\
                      host=args['host'], \
                      db=args['db'], \
                      user=args['user'], \
                      passwd=args['passwd'] \
                  )
  
      def getParams(self):
          return self.dbParams
  
      def getConnection(self):
          return self.conn
  
subject: connect to mysql database