sql and xml work