set up basic api with mongodb