Changing get_by_attribute to get_all_by_attribute