add table merge pymongo script