Database preperations for StatisticsPanel