ONGC to invest Rs 823 cr for CBM gas development