SQLAlchemy integration

Ah, though I guess it might be different with the query API. I guess we'll still need to see, there.