added sql query reading from xml and dais