fixed mysql connection