XML parsing and retrieve from db.