some syntax error fixes for opensim.mysql.php