Various utility functions for SQLAlchemy
