Use SQLite in a simpler and less error-prone way

The previous practice of keeping around prepared statements is
somewhat harmful, as they end up bound to the connection. Drop the
statementMap concept, and just use tx.Query() directly instead.

Reduce issues with concurrent write access to SQLite by running
db.SetMaxOpenConns(1).
3 jobs for master in 2 minutes and 3 seconds (queued for 3 seconds)
latest
Status Job ID Name Coverage
  Build Pkgsrc
passed build_pkgsrc:bullseye #33281

00:00:31

 
  Build Pkg
passed build_pkg:bullseye:amd64 #33282
amd64

00:01:20

 
  Upload Pkg
passed upload_pkg #33283

00:00:10