Add id field to stat model

This field needs to be available for search related categories.