public function getDBConnection($type = 'default')
    {
        switch (strtolower($type)) {
            case "default":
            case "read":
                if (isset($this->databaseAliasNameforRead)) {
                    $dbName = $this->databaseAliasNameforRead;
                } else {
                    $dbName = $this->databaseAliasName;
                }
                break;
            case "write":
                if (isset($this->databaseAliasNameforWrite)) {
                    $dbName = $this->databaseAliasNameforWrite;
                } else {
                    $dbName = $this->databaseAliasName;
                }
                break;
        }
        return Openbizx::$app->getDbConnection($dbName);
    }