add unique indexes to tables columns that require unique values

https://osraav.atlassian.net/browse/OSRA-252
OSRA-252 #code-review