[databases] Add support for V2 version of the Database object

This will properly fetch all required protocol templates.
2 jobs for fix_protocol_template_handling in 4 minutes and 36 seconds (queued for 3 seconds)
Status Job ID Name Coverage
  Build
passed #222407
docker-build
build_linux_37

00:02:50

58.0%
passed #222406
intel macos
build_macos_intel_37

00:04:31

58.0%