Add pagination methods to the QueryBuilder