Fix protocol template handling
This merge request fixes the download of V2 version of Database objects.
It requires to first get all the required protocol templates.
The code is done so that adding online related commands for protocol templates can be done in a follow up MR.