public function upsert($bucketName, $id, $data)
    {
        $bucketName = $this->db->quoteBucketName($bucketName);
        $id         = $this->db->quoteValue($id);
        $data       = Json::encode($data, JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE | JSON_FORCE_OBJECT);

        return "UPSERT INTO $bucketName (KEY, VALUE) VALUES ($id, $data) ";
    }