File which communicates with the Mongo DB