public function selectDatabase() { if (!$this->connection->isConnected()) { $this->connection->connect(); } $this->database = $this->connection->getDatabase(); }