def METHOD_NAME(self, dbConfig, dialect, socketLoc=None):
    """
    Sets the default connection parameters, without having to worry
    much on what attributes need to be set. This is esepcially
    advantagous for developers of third party projects that want
    to use only parts of the WMCore lib.
    The class differentiates between different formats used by external
    projects. External project formats that are supported can activated
    it by setting the flavor flag.
    """
    myThread = threading.currentThread()
    if getattr(myThread, "dialect", None) != None:
        # Database is already initialized, we'll create a new
        # transaction and move on.
        if hasattr(myThread, "transaction"):
            if myThread.transaction != None:
                myThread.transaction.commit()
        myThread.transaction = Transaction(myThread.dbi)
        return
    options = {}
    if dialect.lower() == 'mysql':
        dialect = 'MySQL'
        if socketLoc != None:
            options['unix_socket'] = socketLoc
    elif dialect.lower() == 'oracle':
        dialect = 'Oracle'
    elif dialect.lower() == 'http':
        dialect = 'CouchDB'
    else:
        msg = "Unsupported dialect %s !" % dialect
        logging.error(msg)
        raise WMInitException(msg)
    myThread.dialect = dialect
    myThread.logger = logging
    myThread.dbFactory = DBFactory(logging, dbConfig, options)
    myThread.dbi = myThread.dbFactory.connect()
    # The transaction object will begin a transaction as soon as it is
    # initialized.  I'd rather have the user handle that, so we'll commit
    # it here.
    myThread.transaction = Transaction(myThread.dbi)
    myThread.transaction.commit()
    return