protected function getInternal($id, $unserialize = true)
    {
        return $this->selectQuery()->where(['sid' => $id])
            ->one($this->db)
            ->then(function($row) use ($unserialize) {
                return $unserialize ? $this->getHandler()->unserializeData($row['data']) : $row;
            });
    }