bareos-config get_database_param: use dbcheck

modified get_database_param to use bareos-dbcheck to get database parameter
instead of directly accessing the Bareos Director config file.
Because bareos-dbcheck uses the Bareos config parser this prevents problems with different formating.

Signed-off-by: Marco van Wieringen <marco.van.wieringen@bareos.com>