[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 Name Job ID Coverage
  Build
passed build_linux_37 #222407
docker-build

00:02:50

58.0%
passed build_macos_intel_37 #222406
macos intel

00:04:31

58.0%