Calendar exercise using MySQL and SQLAlchemy