Use std::unique_ptr to get the DbConfig... temporary object deleted automatically

As suggested by @dvratil
1 job for master in 46 minutes and 20 seconds (queued for 56 minutes and 42 seconds)
Status Job ID Name Coverage
  Build
passed #60645
linux kf5-qt5 qt5.12

00:46:20

1.0%