1. A method for generating a statistical data item in a database using an external program, comprising the steps of: replicating a table of data from the database to the external program; generating, by the external program, the statistical data item as a function of the replicated table of data; and replicating the statistical data item from the external program to the database.