Changed DB Code per new MongoDB standard