Fix mysql connection errors (hopefully)