Ditch ORM and replace peewee with SQLAlchemy (core).