Fix generated protocol templates
The original work done for the protocol template was working however it has been discovered that the helper script did not correctly generate the protocol templates.
The script has been fixed in !134 (merged) however the test data were not.
This merge request fixes that. As a byproduct of this cleanup, it has been found that the large database was in fact wrongly written and thus has been fixed as well.