CurrentDBDocument in sync with UIApplication

fix for MAGN-2117