SQL tuning Script.