Hotfix #748 - Inconsistent Users can not be deleted.
Hotfix #741 - Fix long filename display in history page.
Fix missing indexes