Reading from xml file & building up the DB