Error with saving to mongo db

Thanks a lot @idi527, after completing your advice, everything started workingю