Schema: make task name index unique

This is to prevent the same task being inserted multiple times.