MDL-34248 core_backup: used API instead of inserting into the log table directly