Implemented MongoDB and added a run script. Should fix issue #2