lab07, temporary changes for supporting mongodb, not tested yet