Add mongo; fix logging