DB: Fixing memory leak and code optimization

4 jobs for mem_leak in 17 minutes and 8 seconds (queued for 1 second)
latest
Status Name Job ID Coverage
  Build
passed library_build #956433

00:11:18

passed paralel_build #956434

00:11:19

 
  Deploy Doc
passed pages #956435

00:05:48

 
  Deploy
passed pages:deploy

00:00:05