Set up a restful interface to a mongodb database