Adds unique db index to macro alias since there can never be duplicates.