SQLAlchemy integration

Since `id` is a PK there, I don't think we need this checking.