adding in MongoStore and separting model logic from controller