gets video code before updating db