added mongodb to dependencies, bound route methods to instance of router obj