getting content from mongodb