public function run() { self::readConfig(); // try to connect to database self::$db = new Conjur_Database(self::$config->resources->db->host, self::$config->resources->db->username, self::$config->resources->db->password, self::$config->resources->db->dbname); if (!self::$db->isConnected()) { echo "not connected"; //todo: installation script here } else { self::loadSettings(); } }