Can now save to mongodb.