add controller and use mongoose