Added some new functions that will use SQLAlchemy.