added database check to video validation