an REST api using flask mongodb