Add simple logging
Allow mongodb config to be configured