Changed call to fetchAssoc to fetchAll (the latter is correct)