Fixed config.xml and added DB