Performance improvements for db schema update.

Creating a temporary index to use while performing certain update
steps shaved 26.5 seconds off a 27 second update step.
Using a where clause with arguments instead of creating a new
hardcoded where clause for every update shaved another 2 seconds
off a 4 second update step.
b/5149066

Change-Id: I79a263995cce00a5427ea3851df664dfc5c1da8c
1 file changed