Boilerplate code for Flask + SQLAlchemy