changes to delete old logs using TTL facility of mongoDB.