Use Rails logging in updater.
Enhance model with loan IDs, extract them from library system, test it.