Implement unique index on position for activities