Xml database abstraction