Example of connecting to mongodb