Changing videos to activerecord