Added pagination for query store