Modeling amyloids in bacteria