Implemented gather_templates_from_targetexplorerdb