1. A method for creating a model for analyzing data, the method comprising: importing a set of sample data from a database into a spreadsheet application; associating a set of spreadsheet operations comprising a spreadsheet model with the set of sample data; translating the set of spreadsheet operations into a model database query, such that the model database query performs the set of spreadsheet operations on a full data set in the database.