Various utility functions that I use alongside SQLAlchemy.