changed queries for sharedWith items