database config in xml 
refs #124,#125