[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)