public function display($result, $method = 'info')
    {
        if ($result) {
            if (is_array($result)) {
                $this->displayTable($result);
            } elseif (is_bool($result)) {
                $this->{$method}($result ? 'Statement executed sucessfully.' : 'And error ocurred while executing the statement.');
            } else {
                $this->{$method}($result);
            }
        }
    }