Add tested ammongodb script taking generalised parameters