quote.py - SQLAlchemy support

Now works properly with SQLAlchemy’s ORM model.