changed sql, number of files uploaded are fixed, generate unit filelist done