Fix blob-escaping in `Trakeva_sqlite`

This also adds one regression test which used to fail before the fix.