Add a new Function for disconnect MySQL

if it don't add disconnect MySQL function, the processes of MySQL will reach the maximum value. Some queries will not get the results.