public function getCurrentDatabaseName() { if (!$this->currentDatabaseName) { throw new Exception('Database not selected'); } return $this->currentDatabaseName; }