changed queries impl for fetchNext and fetchPrev and for total property in results