Fix sqlalchemy digests