ViewDbChk is a free tool that helps you overcome and clean up database inconsistencies for VMware Horizon View, the VMware solution for VDI.
The tool, available for version 5.3 and 6.0, can be downloaded through the link below. When downloading, be sure to select the correct version.
https://labs.vmware.com/flings/viewdbchk