CMS-4383 Add access right element to queries

Removed QueryProperties and dirty count method in dao
CMS-4383 Add access right element to queries

Finally removed path and parent from workspace-index. Phew.