add avtools instead of ffmpg
fix mysql_escape_String call.  Must use strlen, not sizeof