Install mongodb and define api route