try to make the use of xml and db doable