Generic SqlAlchemy implementations