add commandline option to fix records affected by capture image db race condition