Added index to stats stat_type_id