Data analysis for ph data from mongodb