MySQL Connection bug fixes with fetch