/**
  * Returns the ID of the last inserted row or sequence value
  *
  * @param string|null $name
  * @return string
  */
 public function lastInsertId($name = null)
 {
     try {
         return $this->pdo->lastInsertId($name);
     } catch (PDOException $e) {
         ConnectionException::pdoError($e->getMessage(), $e->getCode());
     }
 }