Resolve a handful of issues in SQLAlchemy support.