Refactor npm_datasource_update_mongo function to work outside of a nodeapi trigger (so it will work on the views bulk ops view).