Simple webserver in flask to insert into mongo collection