def add_ruleset_to_list(rulesengine_db, ruleset_name, ruleset_root, active=1):
    """adds ruleset to list"""
    from src.praxxis.sqlite import connection
    import os
    ruleset_name = os.path.basename(ruleset_root).split('.db')[0]
    conn = connection.create_connection(rulesengine_db)
    cur = conn.cursor()
    add_rule = 'INSERT INTO "RulesEngine"(Name, Path, Active) VALUES (?, ?, ?)'
    cur.execute(add_rule, (ruleset_name, ruleset_root, active))
    conn.commit()
    conn.close()
