Add id field to stat model

This field needs to be available for search related categories.
Merge pull request #6 from qur2/master

Add id field to stat model