I've been passing around this loop setup recently to help with error handling:
Is there a reason you need the 7,000 entries to be inserted one at a time? You should be able to pass the array of entries using the Bulk Insert or Bulk Update/Upsert via Primary Key using the GUI setup for your DB's table connection.