add unique flag for "create index" action
fixing errors