Update (at least some of) the web code to work with newer a SQLAlchemy