fixing mysql connection