setting up an insert query for all xml data