Following along with MondoDB's example blog with Flask