storing data to mongo