master template may be specified as DefaultMaster parameter in config file. Otherwise it is hardcoded into tag-init.tcl as /www/default-master.It uses ad_parameter function, which i modified into ns_config for /ats section.
database-proc/oracle.tcl is used for Oracle, but it is possible just
modify ns_ora into ns_db and it works fine.I am using modified version of oracle.tcl, but i didn't completed this for production use.