It's probably worth to add a comment here, that there's equivalent code  for the chef side in the CrowbarDatabaseHelper. So that if if somebody thinks about changing the hostname scheme both files need to be updated.