MDL-34248 core_backup: used API rather than inserting into log table directly