fixes #5788
Merge pull request #5882 from dotCMS/issue-5788-add-index-to-structure-folder-and-host-in-postgres

fixes #5788