Fixed default puppetDB function