Allow to override db user via DB_USER env
Add a spec to reproduce thread-safety on upsert
simplify, but not fast
enable all threaded tests
pass threaded tests (at least) with this hack