Gather targets when running in "all targets in DB" mode.