[experiments] Only create the view if the index must be done

There's no reason to create the view early if it might not
be used.
4 jobs for fix_db_index_check in 3 minutes and 50 seconds (queued for 4 seconds)
Status Job ID Name Coverage
  Build
passed #191145
docker-build
build_linux_36

00:03:01

55.0%
passed #191146
docker-build
build_linux_37

00:02:55

55.0%
passed #191143
macosx
build_macosx_36

00:03:49

55.0%
passed #191144
macosx
build_macosx_37

00:03:39

55.0%