full function of data parse ready, next mongo db