Update stats.sp

Added server id to required queries