Create requestHandler.js

Makes sure that requests interact with mongoDB