run one sql to get all books in one page