replaced references to the generic cursor with readcursor or writecursor