Fix bug with Puppet db generation