Add the ownerId to the state document so that you can query the state document to retrieve documents by state