Transition from mysql to mongodb