adding mongo saving and retrieval