Switch from bash to perl

Switched all bash code to perl for quicker and better DB connects.
Also use bacula dbcheck to get the database connection data without
using any munin config entries.

TODO: DB besides postgresql and multiple Catalog settings.