change procedural to object style of MySQLi API; fix link in langfunctionlib.php