I guess, the reason is that `usestd` does not use threads, but httpx (the httpbeast fork that prologue uses) does.
As far as i understand the `theadvar` pragma, every thread gets its own `pool` variable, but my guess ist that the database connection is not correctly initialized for each thread.