1. A method for exchanging data between a database table and a document, the method comprising: defining a query structure providing: (1) a data structure of the document; (2) a data storage strategy for de-serializing the document to the database table; and (3) a data retrieval strategy for serializing the document from the database table; de-serializing the document to the database table using the query structure; and serializing data from the database table the document using the query structure.