Funny, I just installed the RPG Maker . .. AF lite I think it was to try it out. Not sure if the RGSS can be modified, but it is certainly viewable.
It is just standard ruby from the looks of it. I can't help out with that at this point as its been several years since I've programmed ruby. May be a reason to start back doing it again though.
As of PHP 5.5, the MySQL library has been officially deprecated. It is recommended to move to either MySQLi or PDO libraries for your mysql connectivity. See here for help choosing which interface you prefer: http://php.net/manual/en/mysqlinfo.api.choosing.php