MDLUM-2998: Fix to use CFG global var instead of DB queries in connection test