Fixed the database structure for Stats in Extended database

* Should resolve issue #7