add sql dispose command
change thread.sleep(1) to thread.sleep(30) and release byte array by Array.Resize
change all Thread.Sleep(300) to Thread.Sleep(30)