mongodb to save and retrieve log