def create_idea(conn, idea):
    """
    Add a new idea into the ideas table
    :param conn:
    :param idea:
    :return: idea id
    """
    sql = """INSERT INTO ideas(name, description, tags)
             VALUES(?,?,?)"""
    cur = conn.cursor()
    cur.execute(sql, idea)
    conn.commit()
    return cur.lastrowid