added an all_ids methods to implement fetching records one by one