update shorten to use SQLAlchemy