Dopaminergic Neurons Write And Update Memories With Cell Type Specific Rules