implemented da.updatecursor to speed up curve number query