Added make_dict function

Make_dict function for MongoDB