A mathematical model for microcosms: formation of the colonies and coupled oscillation in population densities of bacteria