database config in xml 
refs #123,#124