Preparting for storing statistical data to the database.