a bunch of changes that I don't have time to comment on now.  But these changes allowed all data to make it into the database.