Utilizing bacterial flagellins against infectious diseases and cancers