Improve pilgrim management at Sabarimala, court tells TDB