def METHOD_NAME(
    kind,
    client_ip,
    remote_ip=None,
    remote_port=None,
    status=False,
):
    # NOTE: Kind will be users/hypers as this are the only two wireguard
    #       interfaces. Remotevpn are handled in users wg interface.
    if kind not in ["users", "hypers"]:
        raise Error(
            "not_found",
            "Active client vpn connection: Vpn kind " + str(kind) + " not found",
            traceback.format_exc(),
            description_code="vpn_kind_not_found",
        )
    connection_data = {
        "connected": status,
        "remote_ip": remote_ip,
        "remote_port": remote_port,
    }
    # Find ip
    if kind == "users":
        with app.app_context():
            if len(
                list(
                    r.table("remotevpn")
                    .get_all(client_ip, index="wg_client_ip")
                    .run(db.conn)
                )
            ):
                r.table("remotevpn").get_all(client_ip, index="wg_client_ip").update(
                    {"vpn": {"wireguard": connection_data}}
                ).run(db.conn)
                return True
            r.table("users").get_all(client_ip, index="wg_client_ip").update(
                {"vpn": {"wireguard": connection_data}}
            ).run(db.conn)
            return True
    else:  # kind = hypers
        with app.app_context():
            r.table("hypervisors").get_all(client_ip, index="wg_client_ip").update(
                {"vpn": {"wireguard": connection_data}}
            ).run(db.conn)
        return True