feature: generic retrieval from mongodb