read data from mongo, to json, to php array