close mysql connection
add new script for delete records
slove some connection problems