use database like an infinite list.