db.py -> contrib/sqlalchemy.py; test passing