Add design pattern to achieve dual for both mysql and xml file as data
source.