Patches for contrib/check_nagios_db.pl does not work with postgresql [sf#908214] [#248]