Info of uti

What causes an uti and can it resolve itself ?