Create a unique index for presets.

This ensure that the insert-or-replace will do the right thing and
will avoid creating duplicate presets.