use underscore instead of downcase

When running against ICISPatients we noticed that the database did not get created properly (it created the flight_plan_development etc. databases). 

The reason for this is that downcase is called on the names instead of underscore.