[scripts][migrate_db_to_v2] Fix protocole template creation

The wrong name was used to generate the template.

Also improve handling of protocol template double creation.

If the content is different warn the user and ask
whether it should continue with the database creation.
5 jobs for fix_db_migration_helper in 38 minutes and 31 seconds (queued for 4 seconds)
Status Job ID Name Coverage
  Build
passed #222309
docker-build
build_linux_37

00:14:15

64.0%
passed #222346
intel macos
build_macos_intel_37

00:24:16

64.0%
failed #222278
docker-build
build_linux_37

00:00:31

failed #222308
intel macos
build_macos_intel_37

00:26:09

64.0%
failed #222277
intel macos
build_macos_intel_37

00:01:49