configuring flask and mongodb