added query for finding the document by the user.