completed part 2. upgrade to SLQAlchemy