Messing around with Flask and MongoDB