Merge branch 'implement_db_v2' into 'master'

Implement db v2 handling

Closes #586

See merge request !417
2 jobs for master in 19 minutes and 54 seconds (queued for 3 seconds)
Status Job ID Name Coverage
  Build
passed #222803
docker-build
build_linux_36

00:17:55

69.0%
 
  Deploy
passed #222804
docker
deploy_beta

00:01:58