MDL-40584 backup: Query db once per category in precheck