Added migration for index | added tests for uniqueness