MDL-37982 enrol_ims: No filters applied when inserting into DB