def add_collection_to_lcc_index(basedir, collection_id, raiseonfail=False):
    """
    This adds an LC collection to the index DB.

    basedir is the base directory of the LCC-Server

    collection_id is the directory name of the LC collection we're working on.

    """
    from .backend import abcat
    return abcat.sqlite_collect_lcc_info(basedir, collection_id,
        raiseonfail=raiseonfail)
