Working with insertion to mongodb