MDL-25981 add missing global DB when fetching course modinfo