different ways to  retrieve data from mongodb