Remove use of deprecated createCursor() method