make the mongodb optional and submit a warning