Trying implementation of native query paginator