querying persisted data