LCM: Move creation of material database to LCM utils.