def METHOD_NAME(connection=None, dbname=None):
    """Initialize the configured backend for use with BigchainDB.
    Creates a database with :attr:`dbname` with any required tables
    and supporting indexes.
    Args:
        connection (:class:`~bigchaindb.backend.connection.Connection`): an
            existing connection to use to initialize the database.
            Creates one if not given.
        dbname (str): the name of the database to create.
            Defaults to the database name given in the BigchainDB
            configuration.
    """
    connection = connection or connect()
    dbname = dbname or bigchaindb.config['database']['name']
    create_database(connection, dbname)
    create_tables(connection, dbname)