added function to connect mysql for disk read logging