Store youtube by id

Changed how videos are stored and reduced code duplication.