add new post: solve-messy-code-problem-while-using-flask-with-sqlalchemy