Cursor is now working and placing columns