Added ability to connect to a mongo database