Return multiple table records as array of dictionaries. Fix code, add example code.