Class that is responsible for the mongodb connection