need to execute statements against the cursor, not the connect object. fixed.