Update stat model.
Stats query removed from core to be fully customizable.