1. A method for exposing the contents of a workbook as a data source, the method comprising: receiving, by a computer, a database query directed toward the workbook, wherein the workbook comprises a first data source; in response to the received query: determining whether the workbook contains a reference to at least one second data source, in response to determining that the workbook contains a references to the at least one second data source, retrieving from the at least one second data source the data necessary to calculate the workbook, calculating the workbook, generating a database representation of the calculated workbook, wherein generating the database representation comprises: setting variables corresponding to the workbook, a worksheet, and a cell, wherein the set variables comprises a first workbook, a first worksheet, and a first cell, reading the variables for the first workbook, the first worksheet, and the first cell, inserting the variables into the database representation, determining whether additional cells have to be analyzed, in response to determining that additional cells have to be analyzed, setting the variable corresponding to the first cell to a second cell, reading the variable of the second cell, in response to determining that no additional cells have to be analyzed, determining whether additional worksheets have to be analyzed, in response to determining that no additional worksheets have to be analyzed, setting the variable corresponding to the first worksheet to a second worksheet, reading the variable of the second worksheet, in response to determining that no additional worksheets have to be analyzed, determining whether additional workbooks have to be analyzed, in response to determining that additional workbooks have to be analyzed, setting the variable corresponding to the first workbook to a second workbook, reading the variable of the second workbook, analyzing a first data contained within the workbook, wherein analyzing the first data comprises identifying a second data corresponding to the first data, the second data describing at least one of the following: measures, a predefined hierarchy, indicating a structure of the first data, and default aggregations indicating a content for the data fields within the workbook, using the second data, at least one workbook variable, at least one worksheet variable, the at least one second data source, and at least one cell variable to map a third data from the calculated workbook to the database representation of the calculated workbook, wherein the database representation comprises a multi-dimensional cube wherein the first dimension is associated with at least one worksheet row, a second dimension is associated with at least one worksheet column, a third dimension is associated with at least one second worksheet, and a fourth dimension is associated with the at least one second data source, performing the received query of the database representation of the calculated workbook to obtain a query result, and transmitting the query result as a response to the database query; receiving a request to edit the second data by a user; and in response to the received request: providing a facility for editing the second data, wherein the editing the second data comprises defining a subset of the first data, and receiving the second data edited by the user.