docs: def get_connection(connection_details=None):
      """ Creates a connection to the MySQL DB. """
  
      if connection_details is None:
          connection_details = get_default_connection_details()
  
      return MySQLdb.connect(
          connection_details['host'],
          connection_details['user'],
          connection_details['password'],
          connection_details['database']
      )