Refactor validate_db to use postgresql validation class

Pull request #52 to the postgres module refactors
the validate_db define to be a class.

This corresponding PR updates the puppetdb::server::validate_db
invocation to declare a class and not a define.
Add anchors

to prevent poor classes from floating out
of the graph :(