improved nodejs and mongodb shell scripts