public function setDatabase ($name, $user, $pass, $host = 'localhost', $port = 3306)
    {
        $this->database['name'] = $name;
        $this->database['user'] = $user;
        $this->database['pass'] = $pass;
        $this->database['host'] = $host;
        $this->database['port'] = $port;

        return $this;
    }