Add back on duplicate key update to collection query, required for those running multiple instances of the script.