MySQLi Update

Updated system from persistent MySQL connections to MySQLi objects.