add gen_mgfs bas for creat mgf files from data base