Changed mySQL connect function to change connection varibles