Just learning how to build a webservice with flask and mongodb