PLAT-6498 - Fix SQL server HTS database

Fix implementation of permissions in SQL server