Class for working with xml, using SQL commands.