Read about the BCS technology for storing gridded data in a database.
Please refer to the "Interactive Data Fitting" description