Updated MySQL connections to use MySQLi