add unique indexes to tables columns that require unique values

https://osraav.atlassian.net/browse/OSRA-252
OSRA-252 #code-review
It depends on your metrics.
If an indexed scan for tiny tables takes twice as long on a scan that takes 10ms your scan only takes 20ms.
However as tables grows and indexes become quicker they become quicker by orders of magnitude which will make a massive difference.
Running a select * on orphan statuses with indexing on code and name takes 1.134 ms.