src/Controller/Admin/Setup/Install.php
protected function step4(){


        //this is step 1;
        $this->view->addToBlock("form", "import://admin/setup/user");
        $this->view->setData("step", "4");
        $this->view->setData("title", t("Installation | Install SuperUser"));


        if ($this->application->input->methodIs("post")) {

            // $this->view->setData("alerts", [ ["message"=>t('Success. The database was successfully configured'),"type"=>'success'] ] );
            $install = new Helpers\Install($this->application->config, $this->application->encrypt );

            //preform the installation;
            if(!$install->database( $this->application )){
                $this->application->dispatcher->redirect("/admin/setup/install/3");
            }

            $this->response->addAlert("Wohooo! The database was successfully configure. Now please create a super user.", "info");


        }

        return;

    }
protected function step4(){


        //this is step 1;
        $this->view->addToBlock("form", "import://admin/setup/user");
        $this->view->setData("step", "4");
        $this->view->setData("title", t("Installation | Install SuperUser"));


        if ($this->application->input->methodIs("post")) {

            // $this->view->setData("alerts", [ ["message"=>t('Success. The database was successfully configured'),"type"=>'success'] ] );
            $install = new Helpers\Install($this->application->config, $this->application->encrypt );

            //preform the installation;
            if(!$install->database( $this->application )){
                $this->application->dispatcher->redirect("/admin/setup/install/3");
            }

            $this->response->addAlert("Wohooo! The database was successfully configure. Now please create a super user.", "info");


        }

        return;

    }
Step4. Performs the database table setup. Please note that this method does not
actually create or overwrite the database and as such the database must already exists.
If Database setup is successful, will display the master user setup form

@return void