Only select neccessary data from mongodb.