Implemented rudimentary mongo insertion