simple pagination and modified database