fix sqlite3 unique index