public function getTables($connection) { $result = $this->getDB($connection)->select("show tables"); return array_flatten($result); }