Added document and comment entities
Fixed wrong query
Removed many-to-many category and project mapping