1. A computer-implemented method for querying a tag database, comprising: storing the tag database in a storage; receiving an XML document including a database query written in a query language supported by an agent of the tag database; parsing the XML document to extract the database query from the XML document; and accessing, using a processor, the tag database to perform at least one of a read or write operation on the tag database, based on the database query.