Add support for XML

Also include SQL schema.