Synopsis Data Structures for XML Databases