<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def connect( uri=None, user=None, password=None, host=None, port=9091, database=None, protocol='binary', execution_type=EXECUTION_TYPE_CURSOR, ):
 """Create a MapDClient for use with Ibis Parameters could be :param uri: str :param user: str :param password: str :param host: str :param port: int :param database: str :param protocol: str :param execution_type: int Returns ------- MapDClient """

    client = MapDClient(
        uri=uri,
        user=user,
        password=password,
        host=host,
        port=port,
        database=database,
        protocol=protocol,
        execution_type=execution_type,
    )

    if options.default_backend is None:
        options.default_backend = client

    return client