* fix: only collect prometheus database metrics when explicitly enabled * add missing test * de-duplicate wrapping