quote.py - Support for SQLAlchemy

Fixes to support the ORM-oriented model of SQLAlchemy to the quotes module.