debugging database video save bug