def _regenerate_database(db: SQLAlchemy): """ For testing purposes only. """ db.drop_all() db.create_all() db.session.commit()