def create_card(conn, card):
    """
    Create a new card into the card table
    :param conn:
    :param card:
    :return: project id
    """
    sql = ''' INSERT INTO card(id,number,pin,balance)
              VALUES(?,?,?,?) '''
    cur = conn.cursor()
    cur.execute(sql, card)
    conn.commit()
    return cur.lastrowid