updated the update-loans.py script to update both loans and waitinglists