Fix batch manager (Undefined variable: SQL_VIDEOS)