Adding mongo read option
handling schema for empty results