Analyse large databases and store them

Does the example code in this post help?