Fixed connection to mysql