adding db caching