replace deprecated getAssoc with fetchAssoc

getAssoc interface is confusing, not useful, and therefore deprecated