changed DOM element to Coffea
created a module for handling MongoDB interactions