Add index to resolve slow update on trigger
Change syntax in update