Pagination refactoring.  Moving most heavy lifting to DB drivers.