Fix for `CotDB::runScript` to support custom table names set in config.php. A part of #1301.