Fixes for validate_db_connection and adds support for locale

I have fixed the validate_db_connection such that it does not give syntax-error any more. 
It is still a "define", but I include postgresql::params instead of inheriting.

I also added support for a parameter locale which lets the user override the locale used.