added close mysql method