changed book_id and video_id to polymorphic