now caching videos in database