SQLSTATE[08006] [7] connection to server at "localhost" (::1), port 5432 failed: Connection refused Is the server running on that host and accepting TCP/IP connections? connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused Is the server running on that host and accepting TCP/IP connections?
TypeError Object
(
    [message:protected] => Cannot assign null to property App\Controller\System\BaseController::$db of type PDO
    [string:Error:private] => 
    [code:protected] => 0
    [file:protected] => /var/www/html/crm/app/controllers/System/BaseController.php
    [line:protected] => 11
    [trace:Error:private] => Array
        (
            [0] => Array
                (
                    [file] => /var/www/html/crm/app/controllers/Home.php
                    [line] => 14
                    [function] => __construct
                    [class] => App\Controller\System\BaseController
                    [type] => ->
                )

            [1] => Array
                (
                    [file] => /var/www/html/crm/vendor/pna/skeleton_framework_core/system/app.init.php
                    [line] => 38
                    [function] => __construct
                    [class] => App\Controller\Home
                    [type] => ->
                )

            [2] => Array
                (
                    [file] => /var/www/html/crm/public/index.php
                    [line] => 11
                    [function] => __construct
                    [class] => PNA\App
                    [type] => ->
                )

        )

    [previous:Error:private] => 
)