new paginate method for query builder