added check for unknown database

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