Fixed setup for log and mongodb.