Update mongo adapter script