Stability fix for MySQLi connection type