streamlined workflow of getting metadata&dv into mongodb (deprecate js; use pymongo)