Use cursor to iterate lists of users

This just saves a bit of memory compared to using underscore as each item is done one at a time instead of loading it all at once.