adding cursors to friend_ids