exiting upsert loop once we hit a record that is older than one month