fetch metadata from mongodb