Creates database based on structure in an XML file.