Added functionality to combineResults method to recursively replace array items in the configuration with database items.