Just learn backgroundworker! Very helpful for mysql query.