added selection and cursor (no error) handling
Merge Cursor select