Basic rest service using mongo database