mongodb list and writing data