added mongodb upload (still local mongo)