It would be better to catch only ones from SQLAlchemy here.