private function ensureDatabasePresent($database, $dbName)
    {
        try {
            // if database is not there, try to create it
            $database->createDb($dbName);
        } catch (Exception $exception) {
            $setup = $this->getSetupInstance();
            $setup->setNextStep($setup->getStep('STEP_DB_INFO'));
            $this->getView()->setMessage($exception->getMessage());

            throw new SetupControllerExitException();
        }
        $this->getView()->setViewParam("blCreated", 1);
    }