every 30 sec TrimToSize queue and fix sql cmd