Fix protocole template creation when migrating a database
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.