the validate_legacy function is marked for deprecation in
v9.0.0 from puppetlabs-stdlib.
This also adds a few strict validations to the db classes based on
the validations implemented in the underlying resources.
Change-Id: I9e809415a532a694a50492a5600863d7d3d18a20