now saving to mongodb