Updated the file to read from Mongo