def METHOD_NAME(distro_classes, definations):
    if settings.ENVIRONMENT not in ["DEVELOPMENT", "PREVIEW", "STAGING", "PRODUCTION"]:
        conn_string = "dbname='postgres' user='postgres' port='5432' host='db'"
    else:
        conn_string = settings.CONNECTION_STRING
    api_views = {
        "Auditee": "api.vw_auditee",
        "Auditor": "api.vw_auditor",
        "CapText": "api.vw_cap_text",
        "FederalAward": "api.vw_federal_award",
        "Finding": "api.vw_findings",
        "FindingText": "api.vw_findings_text",
        "General": "api.vw_general",
        "Note": "api.vw_note",
        "Passthrough": "api.vw_passthrough",
        "Revision": "api.vw_revision",
    }
    # Add docs to tables and views
    for model in distro_classes:
        mod_class = distro_classes[model]
        model_name = mod_class.__name__
        doc = inspect.getdoc(mod_class)
        conn = connection(conn_string)
        conn.autocommit = True
        with conn.cursor() as curs:
            curs.execute(
                sql.SQL("COMMENT ON TABLE {} is %s;").format(
                    sql.Identifier("data_distro_{0}".format(model_name.lower())),
                ),
                (doc,),
            )
            if model_name in api_views:
                view = api_views[model_name]
                curs.execute(
                    sql.SQL("COMMENT ON VIEW {} is %s;".format(view)),
                    (doc,),
                )
    # Add docs to fields
    for define_txt in definations:
        model_name = define_txt["Model name"]
        if define_txt["Description"] is not None:
            field_type = define_txt["Validation"]
            if field_type not in ["ForeignKey", "ManyToManyField"]:
                full_defination = str(define_txt["Description"])
                if define_txt["Data Source"] is not None:
                    full_defination = "   ".join(
                        [
                            full_defination,
                            str(define_txt["Data Source"]),
                        ]
                    )
                # add def to table
                conn = connection(conn_string)
                conn.autocommit = True
                with conn.cursor() as curs:
                    curs.execute(
                        # These should be safe strings, but I am going to treat them with caution anyway.
                        sql.SQL("COMMENT ON COLUMN {}.{} is %s;").format(
                            sql.Identifier(
                                "data_distro_{0}".format(model_name.lower())
                            ),
                            sql.Identifier(define_txt["Field name"]),
                        ),
                        (full_defination,),
                    )
                # add def to view
                if model_name in api_views:
                    view = api_views[model_name]
                    conn = connection(conn_string)
                    conn.autocommit = True
                    with conn.cursor() as curs:
                        curs.execute(
                            # These should be safe strings, but I am going to treat them with caution anyway.
                            sql.SQL("COMMENT ON COLUMN {}.{} is %s;").format(
                                sql.SQL(view),
                                sql.Identifier(define_txt["Field name"]),
                            ),
                            (full_defination,),
                        )