Ensure SQLite has the correct unique_record index

Change-Id: I5ab1c7b3fdea605b32b081d20ec79da2449536e6