successfuly writes to mongodb