Added DB caching using SQLAlchemy