Removed debug messages and added useful statistics at the end of the upsert