db: mask password component of printed URLs

fixes #10710
2 jobs for master in 42 seconds (queued for 1 second)
Status Job ID Name Coverage
  Test
passed #222468
x86_64 docker-alpine
test:alpine

00:00:33

passed #222469
x86_64 docker-alpine
test:debian

00:00:39