Needed to add a few more items to the where clause to get the correct templates. - domain_uuid - server_address