moved from sql to mongodb